summaryrefslogtreecommitdiffstats
path: root/sys/dev/eisa/eisaconf.h
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1995-11-06 05:21:01 +0000
committergibbs <gibbs@FreeBSD.org>1995-11-06 05:21:01 +0000
commitd21be4a073ba9b147b443d913dd236d95685cfa7 (patch)
tree9665be3844b9dbbe67010cc48fb7191fb9f091a7 /sys/dev/eisa/eisaconf.h
parent7d20c15d2f262ac5f911b46e46529c4e2bb9fbc5 (diff)
downloadFreeBSD-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.h14
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;
OpenPOWER on IntegriCloud