/*
* os_freebsd.h
*
- * Home page of code is: http://smartmontools.sourceforge.net
+ * Home page of code is: http://www.smartmontools.org
*
- * Copyright (C) 2003-8 Eduard Martinescu <smartmontools-support@lists.sourceforge.net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * You should have received a copy of the GNU General Public License
- * (for example COPYING); if not, write to the Free
- * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * This code was originally developed as a Senior Thesis by Michael Cornwell
- * at the Concurrent Systems Laboratory (now part of the Storage Systems
- * Research Center), Jack Baskin School of Engineering, University of
- * California, Santa Cruz. http://ssrc.soe.ucsc.edu/
+ * Copyright (C) 2003-8 Eduard Martinescu
*
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
/*-
#ifndef OS_FREEBSD_H_
#define OS_FREEBSD_H_
-#define OS_FREEBSD_H_CVSID "$Id: os_freebsd.h,v 1.26 2009/01/14 02:39:00 sxzzsf Exp $\n"
-
-struct freebsd_dev_channel {
- int channel; // the ATA channel to work with
- int device; // the device on the channel
-#ifndef IOCATAREQUEST
- int atacommand; // the ATA Command file descriptor (/dev/ata)
-#endif
- char* devname; // the SCSI device name
- int unitnum; // the SCSI unit number
-};
+#define OS_FREEBSD_H_CVSID "$Id: os_freebsd.h 4760 2018-08-19 18:45:53Z chrfranke $"
-#define FREEBSD_MAXDEV 64
-#define FREEBSD_FDOFFSET 16
#define MAX_NUM_DEV 26
#ifdef HAVE_SYS_TWEREG_H
#define MAXDEV_PER_CHANNEL 2
#define PMPORT_PER_CHANNEL 15 /* max devices connected to this channel via pmport */
+#pragma pack(1)
typedef struct _HPT_CHANNEL_INFO {
unsigned int reserve1;
unsigned int reserve2;
unsigned char reserve[3];
}
HPT_PASS_THROUGH_HEADER, *PHPT_PASS_THROUGH_HEADER;
+#pragma pack()
#ifndef __unused
#define __unused __attribute__ ((__unused__))