diff options
author | peter <peter@FreeBSD.org> | 2000-01-08 15:57:22 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-01-08 15:57:22 +0000 |
commit | 4dc1a88de3c124d01cb486042b1fd6ba88f3abe8 (patch) | |
tree | ebf9dbc0011a3e7752a87c51eaba2001375e535e /usr.sbin/config/config.h | |
parent | 56c26012ce83d84970d82e62757ffefc7048ea0d (diff) | |
download | FreeBSD-src-4dc1a88de3c124d01cb486042b1fd6ba88f3abe8.zip FreeBSD-src-4dc1a88de3c124d01cb486042b1fd6ba88f3abe8.tar.gz |
Apply the axe to some more cruft in config(8). In particular:
- redo the "at" configuration system so that it just syntax checks
to make sure the device you're configuring something "at" appears to
exist. Nuke a bunch of complexity that was responsible for creating
"clones" of wildcard devices and some wierd stuff in a few places
including the scbus config tables etc.
- merge "controller" and "device" - there is no difference as far as
the kernel is concernend, it's just something there to make life
difficult for config file writers. "controller" is now an alias for
"device".
- emit full scsi config into the resource tables. We could trivially
change cam to use that rather than it's own "special" table for wiring
and static configuration. ATA could use this too for static wiring.
- try and emulate some of the quirks of the old system where it made
sense. Some were too strange though and I'd be very suprised if they
were features and not outright bugs. nexus handling is still strange.
One thing in particular is that some of the wierd entries in the
newbus devtables is now gone as it was a quirk side effect of the
wildcard/question-mark cloning above.
GENERIC and LINT still build etc.
Diffstat (limited to 'usr.sbin/config/config.h')
-rw-r--r-- | usr.sbin/config/config.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/config/config.h b/usr.sbin/config/config.h index 3e0c8a2..762e787 100644 --- a/usr.sbin/config/config.h +++ b/usr.sbin/config/config.h @@ -73,14 +73,15 @@ struct file_list { #define BEFORE_DEPEND 8 struct device { - int d_type; /* CONTROLLER, DEVICE, bus adaptor */ - struct device *d_conn; /* what it is connected to */ + int d_type; /* DEVICE, bus adaptor */ + char *d_conn; /* what it is connected to */ + int d_connunit; /* unit of connection */ char *d_name; /* name of device (e.g. rk11) */ int d_unit; /* unit number */ int d_drive; /* drive number */ int d_target; /* target number */ int d_lun; /* unit number */ - int d_slave; /* slave number */ + int d_bus; /* controller bus number */ int d_count; /* pseudo-device count */ #define QUES -1 /* -1 means '?' */ #define UNKNOWN -2 /* -2 means not set yet */ @@ -95,7 +96,6 @@ struct device { int d_irq; /* interrupt request */ struct device *d_next; /* Next one in list */ }; -#define TO_NEXUS (struct device *)-1 struct config { char *s_sysname; |