diff options
author | tijl <tijl@FreeBSD.org> | 2010-12-18 14:24:24 +0000 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2010-12-18 14:24:24 +0000 |
commit | 5eed66cfe03bed0ea6be6caaded8d1e18b4754da (patch) | |
tree | a19cb5d3e5e08426f5fbba83eac5ed20e3deaf74 /usr.bin/colcrt/colcrt.c | |
parent | c76be15f2cdecfdf9514336b8c1e79d7a995d3ac (diff) | |
download | FreeBSD-src-5eed66cfe03bed0ea6be6caaded8d1e18b4754da.zip FreeBSD-src-5eed66cfe03bed0ea6be6caaded8d1e18b4754da.tar.gz |
No need to zero the softc. It's allocated with M_ZERO.
Use pci_enable_busmaster instead of setting PCIM_CMD_BUSMASTEREN
directly. There's no need to set PCIM_CMD_MEMEN. The bit is set when a
SYS_RES_MEMORY resource is activated.
Remove redundant pci_* function calls from suspend/resume methods. The
bus driver already saves and restores the PCI configuration.
Write 1 byte instead of 4 when setting the HIFN_TRDY_TIMEOUT register.
It is only 1 byte according to the specification.
Reviewed by: jhb
Approved by: kib (mentor)
Diffstat (limited to 'usr.bin/colcrt/colcrt.c')
0 files changed, 0 insertions, 0 deletions