freebsd-skq/sys/modules/Makefile

344 lines
3.9 KiB
Makefile
Raw Normal View History

1999-08-28 01:08:13 +00:00
# $FreeBSD$
.if !defined(NOCRYPT) || defined(ALL_MODULES)
.if exists(${.CURDIR}/../opencrypto)
_crypto= crypto
_cryptodev= cryptodev
.endif
.if exists(${.CURDIR}/../crypto)
_random= random
2000-07-07 09:38:01 +00:00
.endif
.endif
2000-07-07 09:38:01 +00:00
SUBDIR= accf_data \
accf_http \
aha \
aic7xxx \
aio \
amr \
an \
2003-06-28 06:18:37 +00:00
ath \
aue \
axe \
bfe \
bge \
bridge \
cam \
cd9660 \
cd9660_iconv \
coda \
coda5 \
${_crypto} \
${_cryptodev} \
cue \
dc \
dcons \
dcons_crom \
de \
digi \
dummynet \
en \
fatm \
fdc \
2002-10-21 00:38:18 +00:00
fdescfs \
2002-11-07 16:19:43 +00:00
firewire \
fxp \
2003-05-31 18:36:41 +00:00
geom \
2001-10-19 02:21:16 +00:00
gx \
harp \
hatm \
hifn \
if_disc \
if_ef \
2002-10-21 00:38:18 +00:00
if_faith \
if_gif \
2002-09-06 17:18:53 +00:00
if_gre \
if_ppp \
if_sl \
if_stf \
if_tap \
if_tun \
2001-09-05 23:47:46 +00:00
if_vlan \
ip6fw \
2001-07-25 20:15:17 +00:00
ip_mroute_mod \
ipfw \
isp \
ispfw \
joy \
kue \
lge \
libiconv \
libmbpool \
libmchain \
lpt \
mac_biba \
mac_bsdextended \
mac_ifoff \
mac_lomac \
mac_mls \
mac_none \
mac_partition \
mac_portacl \
mac_seeotheruids \
mac_stub \
mac_test \
2002-10-04 07:15:34 +00:00
mcd \
md \
mii \
mlx \
2002-10-31 19:39:23 +00:00
mpt \
msdosfs \
msdosfs_iconv \
2003-02-27 14:49:56 +00:00
my \
nfsclient \
nfsserver \
nge \
nmdm \
ntfs \
ntfs_iconv \
nullfs \
patm \
pcn \
plip \
portalfs \
ppbus \
ppi \
pps \
procfs \
pseudofs \
2003-08-30 08:01:05 +00:00
pst \
raidframe \
${_random} \
rc \
rc4 \
Take the support for the 8139C+/8169/8169S/8110S chips out of the rl(4) driver and put it in a new re(4) driver. The re(4) driver shares the if_rlreg.h file with rl(4) but is a separate module. (Ultimately I may change this. For now, it's convenient.) rl(4) has been modified so that it will never attach to an 8139C+ chip, leaving it to re(4) instead. Only re(4) has the PCI IDs to match the 8169/8169S/8110S gigE chips. if_re.c contains the same basic code that was originally bolted onto if_rl.c, with the following updates: - Added support for jumbo frames. Currently, there seems to be a limit of approximately 6200 bytes for jumbo frames on transmit. (This was determined via experimentation.) The 8169S/8110S chips apparently are limited to 7.5K frames on transmit. This may require some more work, though the framework to handle jumbo frames on RX is in place: the re_rxeof() routine will gather up frames than span multiple 2K clusters into a single mbuf list. - Fixed bug in re_txeof(): if we reap some of the TX buffers, but there are still some pending, re-arm the timer before exiting re_txeof() so that another timeout interrupt will be generated, just in case re_start() doesn't do it for us. - Handle the 'link state changed' interrupt - Fix a detach bug. If re(4) is loaded as a module, and you do tcpdump -i re0, then you do 'kldunload if_re,' the system will panic after a few seconds. This happens because ether_ifdetach() ends up calling the BPF detach code, which notices the interface is in promiscuous mode and tries to switch promisc mode off while detaching the BPF listner. This ultimately results in a call to re_ioctl() (due to SIOCSIFFLAGS), which in turn calls re_init() to handle the IFF_PROMISC flag change. Unfortunately, calling re_init() here turns the chip back on and restarts the 1-second timeout loop that drives re_tick(). By the time the timeout fires, if_re.ko has been unloaded, which results in a call to invalid code and blows up the system. To fix this, I cleared the IFF_UP flag before calling ether_ifdetach(), which stops the ioctl routine from trying to reset the chip. - Modified comments in re_rxeof() relating to the difference in RX descriptor status bit layout between the 8139C+ and the gigE chips. The layout is different because the frame length field was expanded from 12 bits to 13, and they got rid of one of the status bits to make room. - Add diagnostic code (re_diag()) to test for the case where a user has installed a broken 32-bit 8169 PCI NIC in a 64-bit slot. Some NICs have the REQ64# and ACK64# lines connected even though the board is 32-bit only (in this case, they should be pulled high). This fools the chip into doing 64-bit DMA transfers even though there is no 64-bit data path. To detect this, re_diag() puts the chip into digital loopback mode and sets the receiver to promiscuous mode, then initiates a single 64-byte packet transmission. The frame is echoed back to the host, and if the frame contents are intact, we know DMA is working correctly, otherwise we complain loudly on the console and abort the device attach. (At the moment, I don't know of any way to work around the problem other than physically modifying the board, so until/unless I can think of a software workaround, this will have do to.) - Created re(4) man page - Modified rlphy.c to allow re(4) to attach as well as rl(4). Note that this code works for the sample 8169/Marvell 88E1000 NIC that I have, but probably won't work for the 8169S/8110S chips. RealTek has sent me some sample NICs, but they haven't arrived yet. I will probably need to add an rlgphy driver to handle the on-board PHY in the 8169S/8110S (it needs special DSP initialization).
2003-09-08 02:11:25 +00:00
re \
rl \
rp \
rue \
sbsh \
scd \
sf \
sis \
sk \
sn \
snp \
ste \
sym \
sysvipc \
ti \
tl \
trm \
2002-10-21 00:38:18 +00:00
twe \
tx \
txp \
uart \
ubsa \
ubsec \
ucom \
udbp \
udf \
udf_iconv \
2002-10-21 00:38:18 +00:00
ufm \
uftdi \
ugen \
uhid \
ukbd \
ulpt \
umapfs \
umass \
2003-06-28 05:46:16 +00:00
umct \
umodem \
ums \
unionfs \
uplcom \
urio \
usb \
uscanner \
utopia \
uvisor \
uvscom \
vpo \
vr \
vx \
wb \
wlan \
xl
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "alpha"
.if defined(WANT_EXT2FS_MODULE) || defined(ALL_MODULES)
2002-10-21 00:38:18 +00:00
SUBDIR+=ext2fs
.endif
.endif
.if !defined(NO_IPFILTER) || defined(ALL_MODULES)
SUBDIR+=ipfilter
.endif
2002-10-21 00:38:18 +00:00
.if ${MACHINE_ARCH} != "sparc64"
SUBDIR+=syscons
.endif
# XXX some of these can move to the general case when de-i386'ed
# XXX some of these can move now, but are untested on other architectures.
.if ${MACHINE_ARCH} == "i386"
SUBDIR+=3dfx \
agp \
aic \
amd \
aout \
2002-10-21 00:38:18 +00:00
apm \
ar \
arcnet \
2003-06-28 06:18:37 +00:00
ath_hal \
awi \
bktr \
coff \
2003-03-09 10:12:58 +00:00
drm \
ed \
2003-03-29 13:42:20 +00:00
elink \
em \
ep \
fe \
hfa \
i2c \
ibcs2 \
2003-03-29 13:40:41 +00:00
ie \
linprocfs \
linux \
lnc \
ncp \
2002-10-21 00:38:18 +00:00
ncv \
ndis \
netgraph \
2002-10-21 00:38:18 +00:00
nsp \
nwfs \
oltr \
pccard \
2003-08-10 01:35:36 +00:00
pcfclock \
2002-10-21 00:38:18 +00:00
pecoff \
ray \
2003-07-21 21:48:45 +00:00
safe \
sbni \
scsi_low \
smbfs \
sound \
speaker \
splash \
sppp \
sr \
stg \
streams \
vinum \
wi \
xe
.if ${MACHINE} == "i386"
SUBDIR+=aac \
acpi \
asr \
bios \
cardbus \
cbb \
ciss \
cm \
dpt \
el \
ex \
exca \
2004-01-11 09:15:13 +00:00
ida \
idt \
iir \
ips \
mly \
s3 \
vesa
.elif ${MACHINE} == "pc98"
SUBDIR+=canbepm \
canbus \
2002-09-16 08:32:48 +00:00
pmc \
snc
.endif
2002-09-16 08:32:48 +00:00
.endif
.if ${MACHINE_ARCH} == "ia64"
# Modules not enabled on ia64 (as compared to i386) include:
# aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
# nsp oltr pecoff s3 sbni stg vesa
SUBDIR+=aic \
ar \
arcnet \
asr \
bktr \
cardbus \
cbb \
ciss \
cm \
coff \
el \
em \
ep \
exca \
fe \
hfa \
iir \
mly \
netgraph \
pccard \
ray \
rc \
scsi_low \
smbfs \
sound \
splash \
sppp \
sr \
streams \
vinum \
wi \
xe
.endif
.if ${MACHINE_ARCH} == "alpha"
SUBDIR+=agp \
linprocfs \
linux \
osf1 \
sound \
sppp \
vinum
.endif
2003-01-09 16:37:37 +00:00
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
SUBDIR+=gem
.endif
.if ${MACHINE_ARCH} == "sparc64"
2003-01-09 16:37:37 +00:00
SUBDIR+=hme
.endif
.if defined(ALL_MODULES)
SUBDIR+=null
SUBDIR+=ufs
.endif
2002-02-17 21:00:20 +00:00
.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
SUBDIR=${MODULES_OVERRIDE}
.endif
# pcic -- currently broken and being worked on out of tree.
# oldcard -- specialized use for debugging only.
# owi -- totally unsupported for debugging only.
# Calling kldxref(8) for each module is expensive.
2003-01-21 05:52:48 +00:00
.if !defined(NO_XREF)
2003-03-12 14:32:46 +00:00
.MAKEFLAGS+= -DNO_XREF
afterinstall:
@if type kldxref >/dev/null 2>&1; then \
${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
kldxref ${DESTDIR}${KMODDIR}; \
fi
.endif
.include <bsd.subdir.mk>