scdreg.h (50477) | scdreg.h (106449) |
---|---|
1/*- 2 * Copyright (c) 1995 Mikael Hybsch 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1995 Mikael Hybsch 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/dev/scd/scdreg.h 50477 1999-08-28 01:08:13Z peter $ | 28 * $FreeBSD: head/sys/dev/scd/scdreg.h 106449 2002-11-05 09:37:32Z mdodd $ |
29 * 30 */ 31 32#ifndef SCD_H 33#define SCD_H 34 35#ifdef __GNUC__ 36#if __GNUC__ >= 2 37#pragma pack(1) 38#endif 39#endif 40 41typedef unsigned char bcd_t; 42#define M_msf(msf) msf[0] 43#define S_msf(msf) msf[1] 44#define F_msf(msf) msf[2] 45 | 29 * 30 */ 31 32#ifndef SCD_H 33#define SCD_H 34 35#ifdef __GNUC__ 36#if __GNUC__ >= 2 37#pragma pack(1) 38#endif 39#endif 40 41typedef unsigned char bcd_t; 42#define M_msf(msf) msf[0] 43#define S_msf(msf) msf[1] 44#define F_msf(msf) msf[2] 45 |
46#define IS_ATTENTION(port) ((inb(port+IREG_STATUS) & SBIT_ATTENTION) != 0) 47#define IS_BUSY(port) ((inb(port+IREG_STATUS) & SBIT_BUSY) != 0) 48#define IS_DATA_RDY(port) ((inb(port+IREG_STATUS) & SBIT_DATA_READY) != 0) 49#define STATUS_BIT(port, bit) ((inb(port+IREG_STATUS) & (bit)) != 0) 50#define FSTATUS_BIT(port, bit) ((inb(port+IREG_FSTATUS) & (bit)) != 0) 51 | |
52#define OREG_COMMAND 0 53#define OREG_WPARAMS 1 54#define OREG_CONTROL 3 55#define CBIT_ATTENTION_CLEAR 0x01 56#define CBIT_RESULT_READY_CLEAR 0x02 57#define CBIT_DATA_READY_CLEAR 0x04 58#define CBIT_RPARAM_CLEAR 0x40 59#define CBIT_RESET_DRIVE 0x80 --- 92 unchanged lines hidden --- | 46#define OREG_COMMAND 0 47#define OREG_WPARAMS 1 48#define OREG_CONTROL 3 49#define CBIT_ATTENTION_CLEAR 0x01 50#define CBIT_RESULT_READY_CLEAR 0x02 51#define CBIT_DATA_READY_CLEAR 0x04 52#define CBIT_RPARAM_CLEAR 0x40 53#define CBIT_RESET_DRIVE 0x80 --- 92 unchanged lines hidden --- |