Revert to static Ethernet driver for the ATARI.
After all there's no momentum for a W5100-based Ethernet solution on the ATARI. So I revert to static linkage of the CS8900A driver as this improves program load times.
This commit is contained in:
parent
7b7781360f
commit
a6472c8dd9
5 changed files with 14 additions and 17 deletions
|
@ -63,7 +63,7 @@ ethernet_init(struct ethernet_config *config)
|
|||
{
|
||||
static const char signature[4] = {0x65, 0x74, 0x68, 0x01};
|
||||
|
||||
#ifndef ETHERNET
|
||||
#ifndef STATIC_DRIVER
|
||||
|
||||
struct mod_ctrl module_control = {cfs_read};
|
||||
uint8_t byte;
|
||||
|
@ -91,13 +91,13 @@ ethernet_init(struct ethernet_config *config)
|
|||
}
|
||||
}
|
||||
|
||||
#else /* !ETHERNET */
|
||||
#else /* !STATIC_DRIVER */
|
||||
|
||||
extern void ETHERNET;
|
||||
extern void STATIC_DRIVER;
|
||||
|
||||
module = ÐERNET;
|
||||
module = &STATIC_DRIVER;
|
||||
|
||||
#endif /* !ETHERNET */
|
||||
#endif /* !STATIC_DRIVER */
|
||||
|
||||
module->buffer = uip_buf;
|
||||
module->buffer_size = UIP_BUFSIZE;
|
||||
|
@ -126,8 +126,8 @@ ethernet_exit(void)
|
|||
{
|
||||
module->exit();
|
||||
|
||||
#ifndef ETHERNET
|
||||
#ifndef STATIC_DRIVER
|
||||
mod_free(module);
|
||||
#endif /* !ETHERNET */
|
||||
#endif /* !STATIC_DRIVER */
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue