Michael Brown
|
3ae7a3d1f0
|
NMB packets are so similar to DNS packets; we may as well add NMB as a
name resolution method.
|
2005-05-01 11:10:17 +00:00 |
Michael Brown
|
89f4fe4a8a
|
Do not include etherboot.h
|
2005-05-01 10:40:12 +00:00 |
Michael Brown
|
3b59bf559c
|
ttl is a uint32_t
|
2005-04-30 19:38:31 +00:00 |
Michael Brown
|
78cdb1da8b
|
DNS resolver rewritten, moved to proto/dns.c
|
2005-04-30 14:50:33 +00:00 |
Michael Brown
|
5f45f14b5f
|
tftp moved to separate file.
|
2005-04-30 14:46:18 +00:00 |
Michael Brown
|
06634dc386
|
Protocols get passed a pointer to the filename portion as well as just the
URL.
|
2005-04-30 14:45:51 +00:00 |
Michael Brown
|
5bec933c66
|
tftp prototypes moved to tftp.h
|
2005-04-30 14:45:33 +00:00 |
Michael Brown
|
1644238813
|
Added debugging.
|
2005-04-30 14:41:37 +00:00 |
Michael Brown
|
332b40b986
|
loadkernel no longer exists; it is now download_url and lives in nic.c.
|
2005-04-30 13:51:18 +00:00 |
Michael Brown
|
55ae308821
|
Protocols also take a pointer to a sockaddr_in.
|
2005-04-30 13:50:01 +00:00 |
Michael Brown
|
00b78f73a4
|
Use struct in_addr rather than just "in_addr".
Add struct sockaddr_in.
|
2005-04-30 13:49:28 +00:00 |
Michael Brown
|
70567c51a2
|
Moved strtoul prototype into stdlib.h for consistency
|
2005-04-30 13:48:48 +00:00 |
Michael Brown
|
65dc273d78
|
First version
|
2005-04-29 13:26:31 +00:00 |
Michael Brown
|
e4131ebb84
|
First version
|
2005-04-29 13:17:25 +00:00 |
Michael Brown
|
754cef922d
|
First version
|
2005-04-28 13:47:36 +00:00 |
Michael Brown
|
282b6f1a1a
|
isa.c uses the new table infrastructure.
|
2005-04-27 12:24:38 +00:00 |
Michael Brown
|
f37e0a06d7
|
dev.c uses the new tables infrastructure.
|
2005-04-27 12:20:54 +00:00 |
Michael Brown
|
d2d4978f4f
|
Use PREFIX_OBJECT to give the init_fn table variables meaningful names.
|
2005-04-27 12:08:52 +00:00 |
Michael Brown
|
1ddcdb0524
|
Added PREFIX_OBJECT() function to be able to easily prepend any string
to the object name in order to generate e.g. per-file variables.
|
2005-04-27 11:59:37 +00:00 |
Michael Brown
|
3e5bf5fb06
|
console.c uses the generic table mechanism
|
2005-04-27 11:38:43 +00:00 |
Michael Brown
|
241f426a85
|
Use new generic tables infrastructure
|
2005-04-27 11:25:21 +00:00 |
Michael Brown
|
b9c9cee8a3
|
Added a generalised table infrastructure, so that we don't have to
keep adding new tables to each architecture's linker scripts.
|
2005-04-27 11:22:46 +00:00 |
Michael Brown
|
fda36a0c1a
|
Added back in the actual call to load().
|
2005-04-26 17:12:07 +00:00 |
Michael Brown
|
3dbdeb588f
|
ISA bus driver updated to report devices as present only if a driver
thinks they are.
Other bus drivers modified for consistency.
|
2005-04-26 12:30:14 +00:00 |
Michael Brown
|
fcee25024f
|
BIOS floppy handling code moved to where it will really live.
|
2005-04-25 19:29:55 +00:00 |
Michael Brown
|
3b14360f5c
|
Renamed describe to describe_device for consistency
|
2005-04-25 19:27:25 +00:00 |
Michael Brown
|
5bace628ae
|
Added "name" field to bus structure.
|
2005-04-25 18:54:15 +00:00 |
Michael Brown
|
f972f256e6
|
Allow for multiple debug levels
|
2005-04-25 16:28:07 +00:00 |
Michael Brown
|
e59607bcb1
|
Should be an <= comparison, not a < comparison.
(Detected using "make symcheck" :)
|
2005-04-23 14:34:00 +00:00 |
Michael Brown
|
1e156f537b
|
Consistency
|
2005-04-22 11:56:27 +00:00 |
Michael Brown
|
3e8c2aa78b
|
Fix up fill_mca_nic.
|
2005-04-22 02:47:39 +00:00 |
Michael Brown
|
97346a75f7
|
Added friendly enable/disable functions
|
2005-04-22 02:43:24 +00:00 |
Michael Brown
|
924143661a
|
Updated all common buses to new API.
|
2005-04-22 02:28:16 +00:00 |
Michael Brown
|
4e3ebba8e6
|
Revert debug message prefix back to none, since we sometimes want to use
DBG() several times to build up a line.
|
2005-04-22 02:27:59 +00:00 |
Michael Brown
|
cfe3a663af
|
Tweaked API to minimise changes to existing drivers even further.
|
2005-04-21 19:04:53 +00:00 |
Michael Brown
|
8153a0fa7e
|
Made macros more like the previous driver API, to minimise required
changes.
|
2005-04-21 18:30:12 +00:00 |
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.
|
2005-04-21 18:18:29 +00:00 |
Michael Brown
|
905ca1f21d
|
Force a standard format upon debug messages.
|
2005-04-21 18:16:54 +00:00 |
Michael Brown
|
a95b458660
|
Trying to create a bus API.
|
2005-04-20 00:29:12 +00:00 |
Michael Brown
|
85b00c4b72
|
Move RELOCATE into config.h
Move ISA probe address logic from config.c into isa.c, create header file
config/isa.h.
|
2005-04-18 11:00:42 +00:00 |
Michael Brown
|
a6057b4cbc
|
Need stddef.h to get size_t
|
2005-04-17 10:48:56 +00:00 |
Michael Brown
|
f08516791e
|
printf and sprintf now defined in vsprintf.h, drag in console.h to get
putchar() as well.
|
2005-04-17 10:45:13 +00:00 |
Michael Brown
|
664ffea697
|
Gave vsprintf.c its own header file, and made console.h include it.
|
2005-04-17 10:44:26 +00:00 |
Michael Brown
|
063140864e
|
Automatically drag in console.h if DBG() is being defined as printf().
|
2005-04-17 10:25:06 +00:00 |
Michael Brown
|
b7c55c3951
|
Avoid signed/unsigned warnings by explicitly making PCI_{BUS,DEV,FUNC}
all return unsigned quantities.
|
2005-04-16 17:09:52 +00:00 |
Michael Brown
|
57070797e3
|
Optimise ISAPNP_READ_PORT_STEP
|
2005-04-16 14:50:41 +00:00 |
Michael Brown
|
c659a54f70
|
Now known to work with an old Adaptec 1505 that I found lying around.
|
2005-04-16 14:41:04 +00:00 |
Michael Brown
|
e29be5e342
|
Speed up PCI bus scanning by skipping fns 1-7 if fn 0 is not present.
|
2005-04-16 11:42:56 +00:00 |
Michael Brown
|
6e5a3858bf
|
Read number of PCI buses returned by BIOS so that we can scan more
quickly.
|
2005-04-16 11:16:31 +00:00 |
Michael Brown
|
9f02376409
|
Make isa_probe_addr a simple integer rather than a struct, to facilitate
specification of ISA_PROBE_ADDRS.
|
2005-04-16 09:30:48 +00:00 |
Michael Brown
|
e6e43a2f2f
|
We now correctly use logical devices.
|
2005-04-15 15:37:39 +00:00 |
Michael Brown
|
8e375c638d
|
Canonicalised tag names
|
2005-04-15 15:20:00 +00:00 |
Michael Brown
|
05986a848f
|
Move the concept of logical devices inside the struct isapnp_device.
|
2005-04-15 15:16:03 +00:00 |
Michael Brown
|
888277d2d1
|
Read current ioaddr and irqno from PnP registers.
|
2005-04-15 14:27:49 +00:00 |
Michael Brown
|
85dd4fd8d6
|
Activation code now generalised as well.
|
2005-04-15 13:07:25 +00:00 |
Michael Brown
|
1980018b8b
|
Cleaned up isolation protocol.
|
2005-04-15 12:25:17 +00:00 |
Michael Brown
|
773d66e6dc
|
Typo
|
2005-04-14 19:10:17 +00:00 |
Michael Brown
|
9eac705dd2
|
Added a generalised ISA device-probing mechanism.
|
2005-04-14 18:46:43 +00:00 |
Michael Brown
|
2e309f9eec
|
Fix BOOT_DRIVER to assign unique and meaningful name to structure.
|
2005-04-14 14:30:03 +00:00 |
Michael Brown
|
9183f2412e
|
bus header files must include dev.h to get struct dev.
|
2005-04-14 14:26:28 +00:00 |
Michael Brown
|
104880ca19
|
Tweak API to allow separation of bus-scanning and device-probing logic.
|
2005-04-14 13:44:07 +00:00 |
Michael Brown
|
ce8dea0dff
|
Separate out bus-scanning and device-probing logic.
|
2005-04-14 13:33:03 +00:00 |
Michael Brown
|
1f26be34b8
|
Allow for multiple BOOT_DRIVER()s in the same file, provided that they
have different probe functions.
|
2005-04-14 12:02:19 +00:00 |
Michael Brown
|
bc85cf756d
|
We need the ISA product ID mask available separately for 3c509.c.
|
2005-04-14 11:47:30 +00:00 |
Michael Brown
|
dcd573afcb
|
Automatically create DBG() macro based on debug_<object> macro.
|
2005-04-14 11:35:45 +00:00 |
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.
|
2005-04-14 10:10:54 +00:00 |
Michael Brown
|
200b39a645
|
Extraced from 3c509.c
|
2005-04-13 12:45:38 +00:00 |
Michael Brown
|
a4f1a058a4
|
Add EISA as a bus type.
|
2005-04-13 12:20:59 +00:00 |
Michael Brown
|
9711f50e20
|
Created separate isa_ids.h file and a utility function to print out ISA
IDs in a human-readable format.
|
2005-04-13 12:01:44 +00:00 |
Michael Brown
|
ac1c0a753d
|
Add MCA devices
|
2005-04-13 03:00:50 +00:00 |
Michael Brown
|
1aee4e8001
|
Extracted from 3c509.c
|
2005-04-13 02:59:13 +00:00 |
Michael Brown
|
f16ac2d87e
|
Fix type of dummy_irq()
|
2005-04-13 01:28:43 +00:00 |
Michael Brown
|
17d69d8930
|
Add mbps and duplex to struct nic, since some drivers (e.g. rtl8139)
can fill them in.
|
2005-04-13 00:16:42 +00:00 |
Michael Brown
|
95da907d5f
|
Add print_info method to dev_operations.
|
2005-04-12 22:43:25 +00:00 |
Michael Brown
|
d9f34bfdfc
|
Add dummy_connect and dummy_irq
|
2005-04-12 19:11:13 +00:00 |
Michael Brown
|
1218698e01
|
Cope with nic.h being included before (or without) dev.h
|
2005-04-12 18:21:38 +00:00 |
Michael Brown
|
122b025293
|
Include dev.h, since several drivers just include nic.h
|
2005-04-12 18:15:12 +00:00 |
Michael Brown
|
3293c68488
|
Make adjust_pci_device global, since many drivers call it.
|
2005-04-12 18:10:57 +00:00 |
Michael Brown
|
762fa9a478
|
Fix up find_pci_device so that it can be used for scanning for devices
*other* than the main boot device.
|
2005-04-12 18:04:03 +00:00 |
Michael Brown
|
5c31682674
|
Tie into new boot device framework.
|
2005-04-12 16:54:09 +00:00 |
Michael Brown
|
6343381e25
|
Matches new pci.c interface.
|
2005-04-12 16:45:40 +00:00 |
Michael Brown
|
5603c879c4
|
Add INIT_PCIBIOS
|
2005-04-12 16:45:16 +00:00 |
Michael Brown
|
45f96a49c7
|
main.c contains the global struct dev.
|
2005-04-12 16:39:03 +00:00 |
Michael Brown
|
17c1ca90e7
|
New device probing mechanism
|
2005-04-12 16:38:23 +00:00 |
Michael Brown
|
5d96e5dad9
|
Changed guard name to avoid clash with INCLUDE_xxx namespace used by
drivers.
|
2005-04-11 09:58:31 +00:00 |
Michael Brown
|
d189b84536
|
Fix up init ordering.
Make init function table name fixed; it's a static variable anyway.
|
2005-04-10 18:20:38 +00:00 |
Michael Brown
|
ef05051f23
|
Add INIT_LIBRM before INIT_CONSOLE.
|
2005-04-09 15:26:38 +00:00 |
Michael Brown
|
8570814148
|
Removed basemem.c prototypes
|
2005-04-09 15:00:28 +00:00 |
Michael Brown
|
c8c7d93757
|
Relocation code is arch-specific.
|
2005-04-09 13:28:59 +00:00 |
Michael Brown
|
fedd00dd46
|
Removed references to old callback mechanism
|
2005-04-09 11:15:14 +00:00 |
Michael Brown
|
9c32083d56
|
callbacks.h no longer exists.
|
2005-04-09 11:12:29 +00:00 |
Michael Brown
|
a3faaf405a
|
Callback mechanism now obsolete
|
2005-04-09 11:11:34 +00:00 |
Michael Brown
|
0ff80b477d
|
Merged mcb30-realmode-redesign back to HEAD
|
2005-04-08 15:01:17 +00:00 |
Michael Brown
|
7700b8059c
|
Remove CODE16 as a global define; most files define it themselves
anyway, and I want to be able to use it as a compile-time option for
the i386 decompressor.
|
2005-03-09 14:02:20 +00:00 |
Michael Brown
|
3d6123e69a
|
Initial revision
|
2005-03-08 18:53:11 +00:00 |