diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 2001-06-29 07:36:29 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 2001-06-29 07:36:29 +0000 |
commit | e219897a2ac55202020d8467356d94641d0510b3 (patch) | |
tree | 26b185d25159dd387d41c613bab5c3e274d8978f /sys/modules | |
parent | cb082ac476b0c0ff562c15115d7355e7d49f1562 (diff) | |
download | src-e219897a2ac55202020d8467356d94641d0510b3.tar.gz src-e219897a2ac55202020d8467356d94641d0510b3.zip |
First stab at fixing resource deallocation, and implementing fdc(4) as
a KLD. Still doesn't work well except in the PCMCIA case (now if only
pccardd(8) could load and unload drivers dynamically...). Mainly, it
tries to find fdc0 on the PCI bus for whatever obscure reasons, but i
need someone who understands driver(9) to fix this. However, it's at least
already better than before, and i'm tired of maintaining too many private
changes in my tree, given the large patches bde submitted. :)
Idea of a KLD triggered by: Michael Reifenberger <root@nihil.plaut.de>
Notes
Notes:
svn path=/head/; revision=78953
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/Makefile | 2 | ||||
-rw-r--r-- | sys/modules/fdc/Makefile | 29 |
2 files changed, 30 insertions, 1 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 4b378be8d0db..c0eef44c4255 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -7,7 +7,7 @@ _random= random .endif SUBDIR= 3dfx accf_data accf_http agp aha amr an aue \ - cam ccd cd9660 coda cue dc de digi ed fdescfs fs fxp if_disc if_ef \ + cam ccd cd9660 coda cue dc de digi ed fdescfs fdc fs fxp if_disc if_ef \ if_ppp if_sl if_tap if_tun ip6fw ipfilter ipfw ispfw joy kue lge \ libmchain linux lnc md mii mlx msdosfs ncp netgraph nfs nge ntfs \ nullfs nwfs pcn portalfs procfs ${_random} \ diff --git a/sys/modules/fdc/Makefile b/sys/modules/fdc/Makefile new file mode 100644 index 000000000000..46a36b3704d0 --- /dev/null +++ b/sys/modules/fdc/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../isa + +KMOD= fdc +SRCS= fd.c \ + opt_fdc.h card.h \ + bus_if.h card_if.h device_if.h isa_if.h +NOMAN= + +FDC_DEBUG= 1 # 0/1 +FDC_PCCARD= 0 # 0/1 whether pccard support (i. e. Y-E DATA PCMCIA + # fdc) is desired + +CLEANFILES= card.h + +opt_fdc.h: + touch ${.TARGET} +.if ${FDC_DEBUG} > 0 + echo "#define FDC_DEBUG 1" >> ${.TARGET} +.endif + +card.h: + touch ${.TARGET} +.if ${FDC_PCCARD} > 0 + echo "#define NCARD 1" >> ${.TARGET} +.endif + +.include <bsd.kmod.mk> |