diff options
author | gibbs <gibbs@FreeBSD.org> | 1995-11-06 05:21:01 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1995-11-06 05:21:01 +0000 |
commit | d21be4a073ba9b147b443d913dd236d95685cfa7 (patch) | |
tree | 9665be3844b9dbbe67010cc48fb7191fb9f091a7 /sys/dev/eisa/eisaconf.h | |
parent | 7d20c15d2f262ac5f911b46e46529c4e2bb9fbc5 (diff) | |
download | FreeBSD-src-d21be4a073ba9b147b443d913dd236d95685cfa7.zip FreeBSD-src-d21be4a073ba9b147b443d913dd236d95685cfa7.tar.gz |
Probe all slots even if an EISA main board isn't found. This catches
cards like the Adaptec 284x that use EISA ID registers for identification
even when in stalled in non-EISA systems.
Use one format throught the files.
-Wall fixes.
Diffstat (limited to 'sys/dev/eisa/eisaconf.h')
-rw-r--r-- | sys/dev/eisa/eisaconf.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/eisa/eisaconf.h b/sys/dev/eisa/eisaconf.h index 63ac12f..b762846 100644 --- a/sys/dev/eisa/eisaconf.h +++ b/sys/dev/eisa/eisaconf.h @@ -18,7 +18,7 @@ * 4. Modifications may be freely made to this file if the above conditions * are met. * - * $Id$ + * $Id: eisaconf.h,v 1.3 1995/11/05 04:42:50 gibbs Exp $ */ #ifndef _I386_EISA_EISACONF_H_ @@ -26,12 +26,12 @@ #define EISA_SLOTS 10 /* PCI clashes with higher ones.. fix later */ -#define EISA_MFCTR_CHAR0(ID) (((ID>>26) & 0x1F) | '@') /* Bits 26-30 */ -#define EISA_MFCTR_CHAR1(ID) (((ID>>21) & 0x1F) | '@') /* Bits 21-25 */ -#define EISA_MFCTR_CHAR2(ID) (((ID>>16) & 0x1F) | '@') /* Bits 16-20 */ -#define EISA_MFCTR_ID(ID) ((ID>>16) & 0xFF) /* Bits 16-31 */ -#define EISA_PRODUCT_ID(ID) ((ID>>4) & 0xFFF) /* Bits 4-15 */ -#define EISA_REVISION_ID(ID) (ID & 0x0F) /* Bits 0-3 */ +#define EISA_MFCTR_CHAR0(ID) (char)(((ID>>26) & 0x1F) | '@') /* Bits 26-30 */ +#define EISA_MFCTR_CHAR1(ID) (char)(((ID>>21) & 0x1F) | '@') /* Bits 21-25 */ +#define EISA_MFCTR_CHAR2(ID) (char)(((ID>>16) & 0x1F) | '@') /* Bits 16-20 */ +#define EISA_MFCTR_ID(ID) (short)((ID>>16) & 0xFF) /* Bits 16-31 */ +#define EISA_PRODUCT_ID(ID) (short)((ID>>4) & 0xFFF) /* Bits 4-15 */ +#define EISA_REVISION_ID(ID) (u_char)(ID & 0x0F) /* Bits 0-3 */ extern struct linker_set eisadriver_set; |