Michael Brown
824d6ffa7f
Header rearrangement.
I want to get to the point where any header in include/ reflects a
standard user-level header (e.g. a POSIX header), while everything that's
specific to gPXE lives in include/gpxe/. Headers that reflect a Linux
header (e.g. if_ether.h) should also be in include/gpxe/, with the same
name as the Linux header and, preferably, the same names used for the
definitions.
19 jaren geleden
Michael Brown
5bace628ae
Added "name" field to bus structure.
20 jaren geleden
Michael Brown
924143661a
Updated all common buses to new API.
20 jaren geleden
Michael Brown
cfe3a663af
Tweaked API to minimise changes to existing drivers even further.
20 jaren geleden
Michael Brown
98ff29345e
Created a bus/device API that allows for the ROM prefix to specify an
initial device, and will also allow for e.g. a device menu to be presented
to the user.
20 jaren geleden
Michael Brown
03346742c0
Use only the header files that we need
20 jaren geleden
Michael Brown
5ca20abf95
Place the call to adjust_pci_device() back in the individual drivers,
since we probably shouldn't be doing this to arbitrary devices during a
PCI bus scan...
20 jaren geleden
Michael Brown
7bd3e883d7
Consistency
20 jaren geleden
Michael Brown
e29be5e342
Speed up PCI bus scanning by skipping fns 1-7 if fn 0 is not present.
20 jaren geleden
Michael Brown
6e5a3858bf
Read number of PCI buses returned by BIOS so that we can scan more
quickly.
20 jaren geleden
Michael Brown
ed7b9109be
Made debug messages more consistent.
20 jaren geleden
Michael Brown
211a607147
Improved debug messages.
Prevented find_pci_device() from being an endless loop.
20 jaren geleden
Michael Brown
a60aadf9e9
Improve debug message legibility.
20 jaren geleden
Michael Brown
ed92171527
Standardised debug messages to make it easy to get a bus scan printout
(just build debugging versions of the relevant bus objects).
20 jaren geleden
Michael Brown
9183f2412e
bus header files must include dev.h to get struct dev.
20 jaren geleden
Michael Brown
104880ca19
Tweak API to allow separation of bus-scanning and device-probing logic.
20 jaren geleden
Michael Brown
44c7cc8c12
Standardised debug mechanism in place now.
20 jaren geleden
Michael Brown
75d864432c
Use the magic of common symbols to allow struct dev to effectively grow at
link time to accommodate whatever bus objects are included.
20 jaren geleden
Michael Brown
5b8e549c83
htons was used in ISAPnP code just due to ISAPnP storing bytes in
reverse order.
20 jaren geleden
Michael Brown
677cda3263
Minor fixups
21 jaren geleden
Michael Brown
81320fae4b
Remove debugging by default
21 jaren geleden
Michael Brown
3293c68488
Make adjust_pci_device global, since many drivers call it.
21 jaren geleden
Michael Brown
762fa9a478
Fix up find_pci_device so that it can be used for scanning for devices
*other* than the main boot device.
21 jaren geleden
Michael Brown
707720c4e5
New PCI scan functions now work.
21 jaren geleden
Michael Brown
121e7386f6
New device probing mechanism written, not tested.
21 jaren geleden
Michael Brown
2ebc56f334
Moved in functions from old core/pci.c that we want to keep.
21 jaren geleden