Lines 306-329
Link Here
|
306 |
TUNABLE_INT("hw.pci.enable_io_modes", &pci_enable_io_modes); |
306 |
TUNABLE_INT("hw.pci.enable_io_modes", &pci_enable_io_modes); |
307 |
SYSCTL_INT(_hw_pci, OID_AUTO, enable_io_modes, CTLFLAG_RW, |
307 |
SYSCTL_INT(_hw_pci, OID_AUTO, enable_io_modes, CTLFLAG_RW, |
308 |
&pci_enable_io_modes, 1, |
308 |
&pci_enable_io_modes, 1, |
309 |
"Enable I/O and memory bits in the config register. Some BIOSes do not\n\ |
309 |
"Enable I/O and memory bits in the config register. Some BIOSes do not" |
310 |
enable these bits correctly. We'd like to do this all the time, but there\n\ |
310 |
" enable these bits correctly. We'd like to do this all the time, but" |
311 |
are some peripherals that this causes problems with."); |
311 |
" there\n\ are some peripherals that this causes problems with."); |
312 |
static int pci_do_realloc_bars = 0; |
312 |
static int pci_do_realloc_bars = 0; |
313 |
TUNABLE_INT("hw.pci.realloc_bars", &pci_do_realloc_bars); |
313 |
TUNABLE_INT("hw.pci.realloc_bars", &pci_do_realloc_bars); |
314 |
SYSCTL_INT(_hw_pci, OID_AUTO, realloc_bars, CTLFLAG_RW, |
314 |
SYSCTL_INT(_hw_pci, OID_AUTO, realloc_bars, CTLFLAG_RW, |
315 |
&pci_do_realloc_bars, 0, |
315 |
&pci_do_realloc_bars, 0, |
316 |
"Attempt to allocate a new range for any BARs whose original firmware-assigned ranges fail to allocate during the initial device scan."); |
316 |
"Attempt to allocate a new range for any BARs whose original" |
317 |
|
317 |
" firmware-assigned ranges fail to allocate during the initial device" |
|
|
318 |
" scan."); |
318 |
static int pci_do_power_nodriver = 0; |
319 |
static int pci_do_power_nodriver = 0; |
319 |
TUNABLE_INT("hw.pci.do_power_nodriver", &pci_do_power_nodriver); |
320 |
TUNABLE_INT("hw.pci.do_power_nodriver", &pci_do_power_nodriver); |
320 |
SYSCTL_INT(_hw_pci, OID_AUTO, do_power_nodriver, CTLFLAG_RW, |
321 |
SYSCTL_INT(_hw_pci, OID_AUTO, do_power_nodriver, CTLFLAG_RW, |
321 |
&pci_do_power_nodriver, 0, |
322 |
&pci_do_power_nodriver, 0, |
322 |
"Place a function into D3 state when no driver attaches to it. 0 means\n\ |
323 |
"Place a function into D3 state when no driver attaches to it. 0 means" |
323 |
disable. 1 means conservatively place devices into D3 state. 2 means\n\ |
324 |
" disable. 1 means conservatively place devices into D3 state. 2 means" |
324 |
agressively place devices into D3 state. 3 means put absolutely everything\n\ |
325 |
" agressively place devices into D3 state. 3 means put absolutely" |
325 |
in D3 state."); |
326 |
" everything in D3 state."); |
326 |
int pci_do_power_resume = 1; |
327 |
int pci_do_power_resume = 1; |
327 |
TUNABLE_INT("hw.pci.do_power_resume", &pci_do_power_resume); |
328 |
TUNABLE_INT("hw.pci.do_power_resume", &pci_do_power_resume); |
Lines 359-367
Link Here
|
359 |
#endif |
360 |
#endif |
360 |
TUNABLE_INT("hw.pci.usb_early_takeover", &pci_usb_takeover); |
361 |
TUNABLE_INT("hw.pci.usb_early_takeover", &pci_usb_takeover); |
361 |
SYSCTL_INT(_hw_pci, OID_AUTO, usb_early_takeover, CTLFLAG_RDTUN, |
362 |
SYSCTL_INT(_hw_pci, OID_AUTO, usb_early_takeover, CTLFLAG_RDTUN, |
362 |
&pci_usb_takeover, 1, "Enable early takeover of USB controllers.\n\ |
363 |
&pci_usb_takeover, 1, |
363 |
Disable this if you depend on BIOS emulation of USB devices, that is\n\ |
364 |
"Enable early takeover of USB controllers. Disable this if you depend on" |
364 |
you use USB devices (like keyboard or mouse) but do not load USB drivers"); |
365 |
" BIOS emulation of USB devices, that is you use USB devices (like" |
|
|
366 |
" keyboard or mouse) but do not load USB drivers"); |
365 |
static int pci_clear_bars; |
367 |
static int pci_clear_bars; |
366 |
TUNABLE_INT("hw.pci.clear_bars", &pci_clear_bars); |
368 |
TUNABLE_INT("hw.pci.clear_bars", &pci_clear_bars); |