104880ca19
Tweak API to allow separation of bus-scanning and device-probing logic.
Michael Brown2005-04-14 13:44:07 +00:00
ce8dea0dff
Separate out bus-scanning and device-probing logic.
Michael Brown2005-04-14 13:33:03 +00:00
4c0d5a0b71
Split 3c509.c into 3c509.9 and 3c529.c, with shared code in 3c5x9.c. Probe mechanisms now use standard EISA and MCA bus methods, with 3c509.c defining a custom ISA bus to handle the 3c509 contention resolution logic.
Michael Brown2005-04-14 12:23:12 +00:00
1f26be34b8
Allow for multiple BOOT_DRIVER()s in the same file, provided that they have different probe functions.
Michael Brown2005-04-14 12:02:19 +00:00
44c7cc8c12
Standardised debug mechanism in place now.
Michael Brown2005-04-14 11:55:57 +00:00
e44e5c7247
compiler.h is now always included on the command line.
Michael Brown2005-04-14 11:50:26 +00:00
bc85cf756d
We need the ISA product ID mask available separately for 3c509.c.
Michael Brown2005-04-14 11:47:30 +00:00
dcd573afcb
Automatically create DBG() macro based on debug_<object> macro.
Michael Brown2005-04-14 11:35:45 +00:00
75d864432c
Use the magic of common symbols to allow struct dev to effectively grow at link time to accommodate whatever bus objects are included.
Michael Brown2005-04-14 10:10:54 +00:00
0dc98309b2
Stripped references to variables in C code.
Michael Brown2005-04-13 13:48:26 +00:00
e294a1ddce
EISA support now provided by eisa.c MCA support now provided by mca.c
Michael Brown2005-04-13 13:06:56 +00:00
4ae83f28f2
Don't use htons, for compatibility with PCI :(
Michael Brown2005-04-13 12:15:14 +00:00
4ecbc63296
Use __bswap_16, since we're not dealing with quantities to go onto the network.
Michael Brown2005-04-13 12:11:21 +00:00
5b8e549c83
htons was used in ISAPnP code just due to ISAPnP storing bytes in reverse order.
Michael Brown2005-04-13 12:06:33 +00:00
9711f50e20
Created separate isa_ids.h file and a utility function to print out ISA IDs in a human-readable format.
Michael Brown2005-04-13 12:01:44 +00:00
1218698e01
Cope with nic.h being included before (or without) dev.h
Michael Brown2005-04-12 18:21:38 +00:00
122b025293
Include dev.h, since several drivers just include nic.h
Michael Brown2005-04-12 18:15:12 +00:00
8fa0e38233
Fixed up PCI-scanning code to use new PCI interface.
Michael Brown2005-04-12 18:13:59 +00:00
3293c68488
Make adjust_pci_device global, since many drivers call it.
Michael Brown2005-04-12 18:10:57 +00:00
762fa9a478
Fix up find_pci_device so that it can be used for scanning for devices *other* than the main boot device.
Michael Brown2005-04-12 18:04:03 +00:00
eb8f730d63
Use pci_{vendor,device}_id instead of just pci_{vendor,device}, to avoid conflict with pci_device function.
Michael Brown2005-04-12 17:56:23 +00:00
67f122c645
Removed pci_find_device_x; it was too ugly to live.
Michael Brown2005-04-12 12:59:21 +00:00
121e7386f6
New device probing mechanism written, not tested.
Michael Brown2005-04-11 19:19:35 +00:00
7172d4abfb
Moved functions that we want to keep to drivers/bus/pci.c
Michael Brown2005-04-11 13:45:00 +00:00
2ebc56f334
Moved in functions from old core/pci.c that we want to keep.
Michael Brown2005-04-11 13:43:53 +00:00
95f755ad7f
Renamed pci.c to pci_legacy.c in preparation for new bus managment infrastructure.
Michael Brown2005-04-11 13:25:41 +00:00
63a0e0e2df
Removed references to no-longer-existent CFLAGS options.
Michael Brown2005-04-11 10:17:00 +00:00
5d96e5dad9
Changed guard name to avoid clash with INCLUDE_xxx namespace used by drivers.
Michael Brown2005-04-11 09:58:31 +00:00
378c1b500c
Cleaner separation of functionality between post_reloc and initialise_via_librm.
Michael Brown2005-04-11 09:24:10 +00:00
b9237160ad
Almost all information in this file is now obsolete. Writing a new driver should, with the new build system, just be a case of writing the .c file and dropping it in place in drivers/net. :)
Michael Brown2005-04-10 23:45:55 +00:00
87508aa0b2
arch_initialise() is now sufficiently generic that we may as well just call it initialise() and place it in main.c. :)
Michael Brown2005-04-10 18:30:34 +00:00
997b51c1e6
Use librm_arch_initialise for librm, arch_initialise for others.
Michael Brown2005-04-10 18:22:31 +00:00
560027899e
Heading towards a sane set of control functions
Michael Brown2005-04-10 18:21:53 +00:00
39cb1b4f9e
All the icky stuff is now taken care of by librm_arch_initialise
Michael Brown2005-04-10 18:21:27 +00:00
1937b39079
Drag in relocate unless NORELOCATE is defined, since it's now called only via the initialisation function table.
Michael Brown2005-04-10 18:19:05 +00:00