PCCARD driver fixes + Makefiles for module builds

Matthew Dillon dillon at apollo.backplane.com
Mon Mar 15 09:22:02 PST 2004


    Thanks Dheeraj!  I've committed it along with some other minor cleanups
    (malloc flags stuff).

    CC To Joerg:  Joerg, it looks like it would be fairly easy to merge in
    all of FreeBSD-5's dev/pccard.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>

:Hello there
: Attached is a piece of code ported (read copied) from FBSD-current to make
: some PCCARDs work under NEWCARD. (I own one of those ..)
: Added two makefile stubs that enable pccard and ep to be compiled as modules.
:
: Kindly review and comment.
:
:--- sys/bus/pccard/pccard.c.orig	Fri Feb 13 22:12:33 2004
:+++ sys/bus/pccard/pccard.c	Sat Mar 13 21:44:51 2004
:@@ -522,6 +522,38 @@
: 	resource_list_free(&devi->resources);
: }
: 
:+static void
:+pccard_mfc_adjust_iobase(struct pccard_function *pf, bus_addr_t addr,
:+			bus_addr_t offset, bus_size_t size)
:+{
:+	bus_size_t iosize, tmp;
:+	
:+	if (addr != 0) {
:+		if (pf->pf_mfc_iomax == 0) {
:...
:-- 
:dheeraj





More information about the Submit mailing list