|
|
1.1 ! root 1: /* ! 2: * Configurable information for the patch driver. ! 3: */ ! 4: #define __KERNEL__ 1 ! 5: ! 6: #include <sys/patch.h> ! 7: #include <sys/compat.h> ! 8: #include <sys/con.h> ! 9: #include <kernel/param.h> ! 10: ! 11: /* ! 12: * These devices need deferred startup during installation. ! 13: */ ! 14: extern CON atcon; /* IDE hard disk. */ ! 15: extern CON sdcon; /* Adaptec hard disk. */ ! 16: extern CON sscon; /* Seagate/Future Domain hard disk. */ ! 17: extern CON scsicon; /* Hai SCSI driver. */ ! 18: ! 19: #define PATCHABLE_VAR(var) { STRING(var), &(var), sizeof(var) } ! 20: #define PATCHABLE_CON(var) { STRING(var), &(var) } ! 21: ! 22: extern unsigned long _bar; ! 23: extern int ronflag; ! 24: extern unsigned long _entry; ! 25: extern int kb_lang; ! 26: extern unsigned int NSDRIVE; ! 27: extern unsigned int SS_INT; ! 28: extern unsigned int SS_BASE; ! 29: extern int AHA_SD_HDS; ! 30: extern int AHA_SD_SPT; ! 31: extern int SDDMA; ! 32: extern int SDIRQ; ! 33: extern int SDBASE; ! 34: extern unsigned short AHADMACHAN; ! 35: extern unsigned short AHAINTR; ! 36: extern unsigned short AHABASE; ! 37: extern int HAI_SD_HDS; ! 38: extern int HAI_SD_SPT; ! 39: extern int HAI_TAPE; ! 40: extern int HAI_DISK; ! 41: extern int ATSREG; ! 42: extern short at_drive_ct; ! 43: extern int fl_dsk_ch_prob; ! 44: ! 45: struct patchVarInternal patchVarTable [] = { ! 46: PATCHABLE_VAR(_bar), ! 47: PATCHABLE_VAR(ronflag), ! 48: PATCHABLE_VAR(_entry), ! 49: PATCHABLE_VAR(kb_lang), ! 50: PATCHABLE_VAR(NSDRIVE), ! 51: PATCHABLE_VAR(SS_INT), ! 52: PATCHABLE_VAR(SS_BASE), ! 53: PATCHABLE_VAR(AHA_SD_HDS), ! 54: PATCHABLE_VAR(AHA_SD_SPT), ! 55: PATCHABLE_VAR(SDDMA), ! 56: PATCHABLE_VAR(SDIRQ), ! 57: PATCHABLE_VAR(SDBASE), ! 58: PATCHABLE_VAR(AHADMACHAN), ! 59: PATCHABLE_VAR(AHAINTR), ! 60: PATCHABLE_VAR(AHABASE), ! 61: PATCHABLE_VAR(HAI_SD_HDS), ! 62: PATCHABLE_VAR(HAI_SD_SPT), ! 63: PATCHABLE_VAR(HAI_DISK), ! 64: PATCHABLE_VAR(HAI_TAPE), ! 65: PATCHABLE_VAR(ATSREG), ! 66: PATCHABLE_VAR(at_drive_ct), ! 67: PATCHABLE_VAR(fl_dsk_ch_prob), ! 68: }; ! 69: ! 70: int patchVarCount = sizeof(patchVarTable)/sizeof(patchVarTable[0]); ! 71: ! 72: struct patchConInternal patchConTable [] = { ! 73: PATCHABLE_CON(atcon), ! 74: PATCHABLE_CON(sdcon), ! 75: PATCHABLE_CON(sscon), ! 76: PATCHABLE_CON(scsicon) ! 77: }; ! 78: ! 79: int patchConCount = sizeof(patchConTable)/sizeof(patchConTable[0]);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.