using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Cosmos.Core; namespace Cosmos.Core.IOGroup.Network { /// /// AMD PCNET II PCI (AM79C970A) chip IOGroup class. /// public class AMDPCNetIIIOGroup { /// /// Register address port. /// public readonly IOPort RegisterAddress; /// /// Register data port. /// public readonly IOPort RegisterData; /// /// Bus data port. /// public readonly IOPort BusData; /// /// MAC1 port. /// public readonly IOPortRead MAC1; /// /// MAC2 port. /// public readonly IOPortRead MAC2; /// /// Create new instance of the AMDPCNetIIIOGroup class. /// /// Chip base address. public AMDPCNetIIIOGroup(ushort baseAddress) { RegisterAddress = new IOPort(baseAddress, 0x14); RegisterData = new IOPort(baseAddress, 0x10); BusData = new IOPort(baseAddress, 0x1C); MAC1 = new IOPortRead(baseAddress, 0x00); MAC2 = new IOPortRead(baseAddress, 0x04); } } }