X-Git-Url: https://git.llucax.com/z.facultad/66.09/etherled.git/blobdiff_plain/05000dec2685a88aaf9bd3c20c8861e62c94696c..afe814271b1b8c0519595d12d5a9cad8a24a3cc9:/src/dp8390.h diff --git a/src/dp8390.h b/src/dp8390.h index 2f0f9b8..dfd19d6 100644 --- a/src/dp8390.h +++ b/src/dp8390.h @@ -24,15 +24,15 @@ sbit IOR = CTRL_PORT^5; // ISA slot pin B14, RTL8019AS pin 29, active low sbit NICE = CTRL_PORT^2; // A7, usado para activar placa de red #endif -// Configuración de paǵinas de buffers -#define TX_PAGE_START 0x40 // 0x4000 Tx buffer: 6 * 256 = 1536 bytes -#define RX_PAGE_START 0x46 // 0x4600 Rx buffer: 26 * 256 = 6656 bytes -#define RX_PAGE_STOP 0x60 // 0x6000 - // Límites de tamaño de paquete #define MIN_PACKET_LEN 60u // Mínimo permitido por 802.3 #define MAX_PACKET_LEN 128u // Mínimo permitido por nuestra escasa memoria =) +// Configuración de paǵinas de buffers +#define TX_PAGE_START 0x40 // 0x4000 Tx buffer: 256 bytes (usamos 128) +#define RX_PAGE_START 0x41 // 0x4600 Rx buffer: 31 * 256 = 7936 bytes +#define RX_PAGE_STOP 0x60 // 0x6000 + // Register base address #define REG_BASE 0x0000 // Hardwired to 0x0300 @@ -137,6 +137,7 @@ sbit NICE = CTRL_PORT^2; // A7, usado para activar placa de red // Each enable bit correspons with an interrupt flag in ISR // Page 1 read/write registers. +#define PAR_BASE REG_BASE + 0x01 // Physical address register base address #define PAR0 REG_BASE + 0x01 // Physical address register 0 #define PAR1 REG_BASE + 0x02 // Physical address register 1 #define PAR2 REG_BASE + 0x03 // Physical address register 2