- 06 Mar, 2003 40 commits
-
-
Russell King authored
- Convert setup-bus.c resource allocation to scan bus->devices rather than bus->children. As noted previously, newly discovered child buses will not be on the parents list of children buses, so when we're trying to assign resources, we need to scan the bus for devices with subordinate buses rather than using the list of children buses.
-
Russell King authored
The pci_find* functions search using the following lists: bus->children (for subordinate buses) pci_root_buses (for all root buses) pci_devices (for devices) This leaves one list which we can add devices to without any drivers finding the new devices before we've finished with them. - initialise bus->node list head. - pci_scan_slot will scan the specified slot, and add the discovered devices to the bus->devices list only. These devices will not appear on the global device list, and do not show in sysfs, procfs. pci_scan_slot returns the number of functions found. If you want to find the devices, you have to scan bus->devices and look for devices where list_empty(&dev->global_list) is true. - new function "pci_bus_add_devices" adds newly discovered devices to the global device lists, and handles the sysfs and procfs stuff, making the devices available to drivers. All our buses which have an empty list head are treated as "new" (since they are not attached to the parent buses list of children) and are also added. Currently, no buses will be in this state when this function is called. - new function "pci_scan_child_bus" scans a complete bus, building a list of devices on bus->devices only, performing bus fixups via pcibios_fixup_bus() and scanning behind bridges. It does make devices externally visible. - pci_do_scan_bus retains its original behaviour - ie, it scans and makes devices available immediately.
-
Russell King authored
- Eliminate the stack allocation of a struct pci_dev, and make pci_scan_slot() take a bus and a devfn argument. - Add "dev->multifunction" to indicate whether this is a multifunction device. - Run header fixups before inserting the new pci device into any device lists or announcing it to the drivers. - Convert some more stuff to use the list_for_each* macro(s).
-
Russell King authored
- Separate out bus resource allocator (pci_bus_alloc_resource) - Provide pci_enable_bridges to setup command register for all pci bridges.
-
Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
The outbsync one has further changes to come in the next batch to sort out some platforms like PPC
-
Alan Cox authored
Also fix the irq masking bug
-
Alan Cox authored
-
Alan Cox authored
This switches ide-dma to ide_execute_command and makes IDE DMA also happy when running shared IRQ
-
Alan Cox authored
This doesn't have the new -ac testing stuff from 2.4.21pre5-ac but it has the stuff I now trust in it. This fixes the cache flush stuff and also means ide-disk now should be safe shared IRQ
-
Alan Cox authored
Dave Woodhouse did this a while ago and its been kicking around in my tree just fine. This gets rid of a lot of the init lists of functions still left in the kernel by having an __init type array built up for the consoles as well
-
Alan Cox authored
-
Alan Cox authored
We must not look for a PCI IRQ for a non native mode IDE device We must write PCI_INTERRUPT_LINE for VIA
-
Alan Cox authored
ALi Magik requires workarounds for TV chips IDE controllers require proper handling in legacy mode PXB must be disabled on C0 450NX or the IDE will corrupt memory VIA northbridge devices require the interrupt line is written NEC_CBUS_2/3 require ISA DMA workarounds
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
This chip needs latency and other setups to avoid a PCI/AGP deadlock with tv cards
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
The -ldb has to be at the end sometimes
-