Up to [DragonFly] / src / sys / bus / pccard
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Update cardbus/pccard support. The original patch was done by joerg@; I seemed to "maintain" it for quite a long time :P Obtained-from: FreeBSD Tested-by: many (intermittently tho)
Rename printf -> kprintf in sys/ and add some defines where necessary (files which are used in userland, too).
Do a major clean-up of the BUSDMA architecture. A large number of essentially machine-independant drivers use the structures and definitions in machine-dependant directories that are really machine-independant in nature. Split <machine/bus_dma.h> into machine-depdendant and machine-independant parts and make the primary access run through <sys/bus_dma.h>. Remove <machine/bus.h>, <machine/bus_memio.h> and <machine/bus_pio.h>. The optimizations related to bus_memio.h and bus_pio.h made a huge mess, introduced machine-specific knowledge into essentially machine-independant drivers, and required specific #include file orderings to do their job. They may be reintroduced in some other form later on. Move <machine/resource.h> to <sys/bus_resource.h>. The contents of the file is machine-independant or can be made a superset across many platforms. Make <sys/bus.h> include <sys/bus_dma.h> and <sys/bus_resource.h> and include <sys/bus.h> where necessary. Remove all #include's of <machine/resource.h> and <machine/bus.h>. That is, make the BUSDMA infrastructure integral to I/O-mapped and memory-mapped accesses to devices and remove a large chunk of machine-specific dependancies from drivers. bus_if.h and device_if.h are now required to be present when using <sys/bus.h>.
Rename malloc->kmalloc, free->kfree, and realloc->krealloc. Pass 2
Rename malloc->kmalloc, free->kfree, and realloc->krealloc. Pass 1
Increase PCCARD_CIS_SIZE from 1024 to 4096 as per FreeBSD-5. Add range checking to all offsets (fixes a panic on my laptop when I stick in my ED ether cardbus card, which it doesn't recognize).
Partial merge from FBsd-5, code to make some PCCARDs work under NEWCARD. Submitted-by: Dheeraj Reddy <email@example.com> Taken-From: FreeBSD-5
Initial backport of NEWCARD from FreeBSD 5. The included version is from end of November 2002 with the exception of bus/pccard/pccarddevs which is from November 2003. Thanks to Warner Losh and the other folks for NEWCARD.