diff options
author | phk <phk@FreeBSD.org> | 2003-02-27 14:09:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-27 14:09:36 +0000 |
commit | 7daff291ec03fa9fd403db1b562d687de8163eaf (patch) | |
tree | a179ffe0a6d18ffa9233c5df468abe2876004ed3 /sys/dev/sio | |
parent | f1d92edd7ffd851fd67e1688039ad1622c08a117 (diff) | |
download | FreeBSD-src-7daff291ec03fa9fd403db1b562d687de8163eaf.zip FreeBSD-src-7daff291ec03fa9fd403db1b562d687de8163eaf.tar.gz |
Add yet a patch for the patchwork quilt called sio(4):
Allow people set set flags on pci based SIO ports.
Diffstat (limited to 'sys/dev/sio')
-rw-r--r-- | sys/dev/sio/sio_pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/sio/sio_pci.c b/sys/dev/sio/sio_pci.c index 9ec45b7..7d989cd 100644 --- a/sys/dev/sio/sio_pci.c +++ b/sys/dev/sio/sio_pci.c @@ -94,6 +94,7 @@ sio_pci_attach(dev) { u_int32_t type; struct pci_ids *id; + int flags; type = pci_get_devid(dev); id = pci_ids; @@ -102,6 +103,9 @@ sio_pci_attach(dev) if (id->desc == NULL) return (ENXIO); sio_pci_kludge_unit(dev); + if (resource_int_value("sio", device_get_unit(dev), "flags", &flags) + == 0) + device_set_flags(dev, flags); return (sioattach(dev, id->rid, 0UL)); } |