ALTERA_ATSE(4)

๐Ÿ“ฆ version 14.5, in freebsd 14.5

๐Ÿฆ‹ ALTERA_ATSE(4) ๐Ÿฆ‹

ok so like... this is a page from the Kernel Interfaces Manual bestie, and we're talking about the atse driver ๐Ÿ’… welcome to the group chat, grab a strawberry ๐Ÿ“


โœจ NAME โœจ

atse โ€” the driver for the Altera Triple-Speed Ethernet MegaCore. that's it, that's the whole vibe ๐ŸŽ€


๐ŸŒธ SYNOPSIS ๐ŸŒธ

device atse
options ATSE_CFI_HACK

and now the part where you gotta talk to /boot/device.hints directly, like sliding into its DMs ๐Ÿ’Œ:

hint.atse.0.at="nexus0"
hint.atse.0.maddr=0x7f007000
hint.atse.0.msize=0x540
hint.atse.0.rc_irq=1
hint.atse.0.rx_maddr=0x7f007500
hint.atse.0.rx_msize=0x8
hint.atse.0.rxc_maddr=0x7f007520
hint.atse.0.rxc_msize=0x20
hint.atse.0.tx_irq=2
hint.atse.0.tx_maddr=0x7f007400
hint.atse.0.tx_msize=0x8
hint.atse.0.txc_maddr=0x7f007420
hint.atse.0.txc_msize=0x20
hint.e1000phy.0.at="miibus0"
hint.e1000phy.0.phyno=0

๐Ÿ’– DESCRIPTION ๐Ÿ’–

the atse device driver provides support for the Altera Triple-Speed Ethernet MegaCore. short, sweet, iconic ๐Ÿ‘‘


๐Ÿ”ฅ HARDWARE ๐Ÿ”ฅ

the current version of the atse driver supports the Ethernet MegaCore as described in version 11.1 of Altera's documentation โ€” but ONLY when the device is configured with internal FIFOs. not me being picky but like... that's the deal fr fr ๐Ÿซถ


๐ŸŽ€ MAC SELECTION ๐ŸŽ€

okay this part is lowkey the main character energy of the whole page, so pay attention bestie ๐Ÿ˜ญ

the default MAC address for each atse interface is derived from a value stored in cfi(4) flash. that value is managed by the atsectl(8) utility, so it's not just vibes โ€” there's a whole tool for it โœจ

only a single MAC address may be stored in flash. one. just one. no hoarding ๐Ÿ’€

so here's the tea:

  • if the address begins with the Altera prefix 00:07:ed and ends in 00, then up to 16 addresses will be derived from it by adding the unit number of the interface to the stored address. math slay ๐Ÿงฎ
  • for other prefixes, the address will be assigned to atse0 and random addresses will be used for other interfaces. sharing is not caring in this case ๐Ÿ™ˆ
  • if the stored address is invalid โ€” for example all zero's, multicast, or the default address shipped on all DE4 boards (00:07:ed:ff:ed:15) โ€” then a random address is generated when the device is attached. the driver just goes "nope" and improvises ๐Ÿ’…

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

Triple-Speed Ethernet MegaCore Function User Guide, Altera Corporation, November 2011. required reading, iykyk ๐Ÿ“š


๐ŸŒˆ HISTORY ๐ŸŒˆ

the atse device driver first appeared in FreeBSD 10.0. a whole era โœจ


๐Ÿ’œ AUTHORS ๐Ÿ’œ

the atse device driver and this manual page were developed by SRI International and the University of Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) (โ€œCTSRDโ€), as part of the DARPA CRASH research programme. this device driver was written by Bjoern A. Zeeb. absolute legend behavior ๐Ÿซก


โญ BUGS โญ

real talk, these are the limitations and you need to know them before you come for me okay ๐Ÿ˜ค
  • the atse driver only supports a single configuration of the MegaCore as installed on the Terasic Technologies Altera DE4 Development and Education Board. literally one fit, no other fits ๐Ÿ’€
  • only gigabit Ethernet speeds are currently supported. no slow lane, no fast lane, just the gigabit one ๐Ÿš€

and that's the whole page babes ๐ŸŽ€ this little gem came from Debian, dated May 21, 2014, and it's filed under ALTERA_ATSE(4) in the Kernel Interfaces Manual โ€” go off, you're now an expert ๐Ÿฆ‹๐Ÿ’–โœจ

๐Ÿ“ฆ where this page comes from
  • freebsd 14.5: base 14.5
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms