summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/rum
diff options
context:
space:
mode:
authortsutsui <tsutsui@NetBSD.org>2006-10-31 14:13:30 +0000
committertsutsui <tsutsui@NetBSD.org>2006-10-31 14:13:30 +0000
commit056982dcb82d5ab64774031e91f37b009f7f0273 (patch)
treed64d17f0e29bef0998a2a636960d319c50008981 /sys/dev/microcode/rum
parent3eed780f614d548ebc3904ea23fcae72e7343dc7 (diff)
Make vge(4) look a NetBSD native driver like pcn(4) or epic(4) etc:
- merge if_vgevar.h into if_vge.c since no other file refers it - rename some macro (VGE_TX_DESC_CNT -> VGE_NTXDESC etc.) and structs - change prefixes of structure members to represent parents - put TX and RX descriptors into single struct vge_control_data and allocate DMA memory at once - no need to specify BUS_DMA_ALLOCNOW - define appropriate macro for offsets and addresses of DMA descriptors - define struct vge_txsoft and vge_rxsoft, and put common data for each descriptor into them - remove struct vge_list_data and move its members into struct vge_softc - remove #ifdef DEVICE_POLLING code we don't support - merge vge_[tr]x_list_init() functions into vge_init() - use aprint_error() to print errors - put splnet(9) where appropriate and remove unused VGE_{LOCK,UNLOCK}() macro - clear TX timeout only if there is no pending descriptor - check dm_nsegs properly otherwise padding short packets could fail - prepare zero'ed DMA memory to pad short packets rather than putting random data - fix a wrong VGE_TXDESCSYNC() usage which should be VGE_TXFRAGSYNC() Tested on my i386 which is my development machine. (more bus_dmamap_sync(9) cleanup will be done later)
Diffstat (limited to 'sys/dev/microcode/rum')
0 files changed, 0 insertions, 0 deletions