cvs commit: src/sys/dev/netif/xl if_xl.c if_xlreg.h
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Fri Sep 23 20:55:06 PDT 2005
sephe 2005/09/23 20:50:30 PDT
DragonFly src repository
Modified files:
sys/dev/netif/xl if_xl.c if_xlreg.h
Log:
in if_xl.c, xl_detach():
- do not use XL_FLAG_ATTACH_MAPPED to test whether xl_stop(), xl_reset() and
ether_ifdetach() can be performed, use device_is_attached() instead. this
can prevent ether_ifdetach() from being called if ether_ifattach() is not
done yet (e.g. xl_attach() fails before calling ether_ifattch())
- adjust white spaces
in if_xl.c, xl_attach():
- in various busdma operation, use BUS_DMA_WAITOK instead of BUS_DMA_NOWAIT,
since xl_attach() is already intr safe
- use BUS_DMA_ZERO in bus_dmamem_alloc() instead of calling bzero() afterwards
Suggested-by: joerg
- do not set XL_FLAG_ATTACH_MAPPED in xl_softc.xl_flags
- minor cleanup
in if_xlreg.h
- GC now unused XL_FLAG_ATTACH_MAPPED macro
Revision Changes Path
1.32 +18 -25 src/sys/dev/netif/xl/if_xl.c
1.7 +0 -1 src/sys/dev/netif/xl/if_xlreg.h
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/xl/if_xl.c.diff?r1=1.31&r2=1.32&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/xl/if_xlreg.h.diff?r1=1.6&r2=1.7&f=u
More information about the Commits
mailing list