Skip to contentSkip to conversation

AT91 Ethernet MAC

PATCH In review Filip Navara 1 participant 1 message Jul 15, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 12/14 AT91 Ethernet MAC

The Ethernet controller is implemented as a device on the system bus. It uses DMA to read and write data from the main memory for packet queues.

Most of the controller features are implemented with the following exceptions:
- Statistics and related registers
- Support of VLAN tags
- Support for transmitting jumbo frames
- Recognizing of MAC addresses by a hash function

The emulation is based on the AT91SAM7X specification and also supports registers present in the older AT91RM9200 controller - notably the TAR register for sending a single frame by writing a physical memory address into it.

EMAC also provides management interface for directly talking to the PHY chip. The emulation of PHY chip is currently hard-coded in the EMAC emulation and behaves as a DM9161 chip. Only few registers of the PHY chip are implemented. Nevertheless it's enough to run the Atmel examples and even FreeRTOS demos.

---
 Makefile.target |    2 +-
 hw/at91_emac.c  |  677 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 678 insertions(+), 1 deletions(-)
 create mode 100644 hw/at91_emac.c
Makefile.target +1 -1
index b008400..c8a990a 100644
@@ -667,7 +667,7 @@ obj-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o
 obj-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o
 obj-y += syborg_virtio.o
 obj-y += at91_aic.o at91_dbgu.o at91_pio.o at91_pit.o at91_pmc.o at91_rtt.o
-obj-y += at91_rstc.o at91_intor.o at91_tc.o
+obj-y += at91_rstc.o at91_intor.o at91_tc.o at91_emac.o
 obj-y += gpio_rotary.o gpio_keypad.o
 CPPFLAGS += -DHAS_AUDIO
 endif
hw/at91_emac.c new file +677 -0

677 lines not on this page · raw message

Signature · 1 line
1.6.3.msysgit.0