kernel: Use DEVMETHOD_END in the drivers.
kernel: Remove some unused variables in gpio/spic/cardbus/ndis.
resource: Per-CPU hardware resources support, step 1 of many- Add cpuid in the resource list entry, which points to the resource's owner CPU- Add cpuid parameter to resource_list_add(), which co
resource: Per-CPU hardware resources support, step 1 of many- Add cpuid in the resource list entry, which points to the resource's owner CPU- Add cpuid parameter to resource_list_add(), which could be used to set the resource's owner CPU
show more ...
kernel: Use NULL for DRIVER_MODULE()'s evh & arg (which are pointers).This is just cosmetics for easier reading.
kernel: Use NELEM() where we can.
modules: remove KMODDEPS, it is not used anymore
kmod.mk: Remove some dead code supposed to handle modules' manual pages.It was ignored previously and since we do not keep kernel relatedmanual pages in sys/ the whole idea is bogus anyway.
cardbus(4): Merge resource allocation changes (for new PCI code) from FreeBSD
pci: Fix up bunch of warnings
Sync PCI code with FreeBSD 7.2Submitted-by: Alexander Polakov <polachok@gmail.com>
Put benign warning message under bootverboseSuggested-by: hasso@
Avoid use-after-free
Initialize tupleid to stop gcc's whining.
Update cardbus/pccard support.The original patch was done by joerg@; I seemed to "maintain"it for quite a long time :PObtained-from: FreeBSDTested-by: many (intermittently tho)
Rename printf -> kprintf in sys/ and add some defines where necessary(files which are used in userland, too).
Rename sprintf -> ksprintfRename snprintf -> knsprintfMake allowances for source files that are compiled for both userland andthe kernel.
rename sscanf -> ksscanfrename vsscanf -> kvsscanfrename fnmatch -> kfnmatchrename qsort -> kqsort
Do a major clean-up of the BUSDMA architecture. A large number ofessentially machine-independant drivers use the structures and definitionsin machine-dependant directories that are really machine-
Do a major clean-up of the BUSDMA architecture. A large number ofessentially machine-independant drivers use the structures and definitionsin machine-dependant directories that are really machine-independant innature.Split <machine/bus_dma.h> into machine-depdendant and machine-independant partsand make the primary access run through <sys/bus_dma.h>.Remove <machine/bus.h>, <machine/bus_memio.h> and <machine/bus_pio.h>. Theoptimizations related to bus_memio.h and bus_pio.h made a huge mess,introduced machine-specific knowledge into essentially machine-independantdrivers, 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 fileis 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> andinclude <sys/bus.h> where necessary. Remove all #include's of<machine/resource.h> and <machine/bus.h>. That is, make the BUSDMAinfrastructure integral to I/O-mapped and memory-mapped accesses to devicesand 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 1
After bus/pci/pcivar.h rev1.10, pcib_get_bus() should be called with device'sparent not device itself
Get rid of bus_{disable,enable}_intr(), it wasn't generic enough forour needs.Implement some generic atomic.h functions to aid in the implementation ofa low level mutex.Implement a generic low
Get rid of bus_{disable,enable}_intr(), it wasn't generic enough forour needs.Implement some generic atomic.h functions to aid in the implementation ofa low level mutex.Implement a generic low level sleep-mutex serializer, kern/lwkt_serialize.c.The serializer is designed to be a replacement for SPL calls but may alsobe used for other very low level work (e.g. lockmgr interlocks).Add a serializer argument to BUS_SETUP_INTR(). When non-NULL, the interrupthandler will no longer be protected by an SPL so e.g. spl*() will nolonger protect against that device's interrupts.The IF queueing and dequeueing mechanisms may no longer depend on outsideSPL state because network driver interrupt handlers are no longer required toenter splnet(). Use critical sections for the moment. The IFQ andIFF_OACTIVE interactions are not yet MP safe.
Include pci_private.h to get pci_class_to_string.
Annotate the class byte with a class name in the bootverbose pci "found->"bus logging code. Numbers are fine, but when there are thousands of themon the screen you need a bit of human readable con
Annotate the class byte with a class name in the bootverbose pci "found->"bus logging code. Numbers are fine, but when there are thousands of themon the screen you need a bit of human readable context.
Synchronize a bunch of things from FreeBSD-5 in preparation for the newACPICA driver support.* Bring in a lot of new bus and pci DEV_METHODs from FreeBSD-5* split apic.h into apicreg.h and apicio
Synchronize a bunch of things from FreeBSD-5 in preparation for the newACPICA driver support.* Bring in a lot of new bus and pci DEV_METHODs from FreeBSD-5* split apic.h into apicreg.h and apicio.h* rename INTR_TYPE_FAST -> INTR_FAST and move the #define* rename INTR_TYPE_EXCL -> INTR_EXCL and move the #define* rename some PCIR_ registers and add additional macros from FreeBSD-5* note: new pcib bus call, host_pcib_get_busno() imported.* kern/subr_power.c no longer optional.Other changes:* machine/smp.h machine smp/smptests.h can now be #included unconditionally, and some APIC_IO vs SMP separation has been done as well.* gd_acpi_id and gd_apic_id added to machine/globaldata.h prep for new ACPI code.Despite all the changes, the generated code should be virtually the same.These were mostly additions which the pre-existing code does not (yet) use.
Initial backport of NEWCARD from FreeBSD 5.The included version is from end of November 2002 with the exception ofbus/pccard/pccarddevs which is from November 2003.Thanks to Warner Losh and the
Initial backport of NEWCARD from FreeBSD 5.The included version is from end of November 2002 with the exception ofbus/pccard/pccarddevs which is from November 2003.Thanks to Warner Losh and the other folks for NEWCARD.