struct {
Uint32 Phys;
void *Virt;
- } RXBuffers[N_RX_PAGES];
+ } RXBuffers[N_RX_BUF_PAGES];
Uint32 DescTablePhys;
void *DescTable;
LOG("Allocaating RX buffers");
// Allocate memory for things
- for( int i = 0; i < N_RX_PAGES; i ++ )
+ for( int i = 0; i < N_RX_BUF_PAGES; i ++ )
{
Card->RXBuffers[i].Virt = (void*)MM_AllocDMA(1, 32, &phys);
Card->RXBuffers[i].Phys = phys;
void *Rhine2_int_GetBufferFromPhys(tCard *Card, Uint32 Addr)
{
- for( int i = 0; i < N_RX_PAGES; i ++ )
+ for( int i = 0; i < N_RX_BUF_PAGES; i ++ )
{
if( Card->RXBuffers[i].Phys > Addr ) continue;
if( Card->RXBuffers[i].Phys + PAGE_SIZE <= Addr ) continue;