lance_memory
struct lance_memory *mem;
MEM = (struct lance_memory *)memaddr;
MEM->init.rx_ring.adr_lo = offsetof( struct lance_memory, rx_head );
MEM->init.tx_ring.adr_lo = offsetof( struct lance_memory, tx_head );
offset = offsetof( struct lance_memory, packet_area );
struct lance_memory *mem;
MEM = dvma_malloc_align(sizeof(struct lance_memory), 0x10000);