//////////////////////////////////////////////////////////////////////////////// /// /// @file APE_DEVICE2.cpp /// /// @project ape /// /// @brief APE_DEVICE2 /// //////////////////////////////////////////////////////////////////////////////// /// //////////////////////////////////////////////////////////////////////////////// /// /// @copyright Copyright (c) 2020, Evan Lojewski /// @cond /// /// All rights reserved. /// /// Redistribution and use in source and binary forms, with or without /// modification, are permitted provided that the following conditions are met: /// 1. Redistributions of source code must retain the above copyright notice, /// this list of conditions and the following disclaimer. /// 2. Redistributions in binary form must reproduce the above copyright notice, /// this list of conditions and the following disclaimer in the documentation /// and/or other materials provided with the distribution. /// 3. Neither the name of the nor the /// names of its contributors may be used to endorse or promote products /// derived from this software without specific prior written permission. /// //////////////////////////////////////////////////////////////////////////////// /// /// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" /// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE /// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE /// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE /// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR /// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF /// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS /// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN /// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) /// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE /// POSSIBILITY OF SUCH DAMAGE. /// @endcond //////////////////////////////////////////////////////////////////////////////// #include DEVICE_t DEVICE2; void init_APE_DEVICE2(void) { /** @brief Component Registers for @ref DEVICE2. */ /** @brief Bitmap for @ref DEVICE2_t.MiscellaneousHostControl. */ /** @brief Bitmap for @ref DEVICE2_t.PciState. */ /** @brief Bitmap for @ref DEVICE2_t.RegisterBase. */ /** @brief Bitmap for @ref DEVICE2_t.MemoryBase. */ /** @brief Bitmap for @ref DEVICE2_t.RegisterData. */ /** @brief Bitmap for @ref DEVICE2_t.UndiReceiveReturnRingConsumerIndex. */ /** @brief Bitmap for @ref DEVICE2_t.UndiReceiveReturnRingConsumerIndexLow. */ /** @brief Bitmap for @ref DEVICE2_t.LinkStatusControl. */ /** @brief Bitmap for @ref DEVICE2_t.ApeMemoryBase. */ /** @brief Bitmap for @ref DEVICE2_t.ApeMemoryData. */ /** @brief Bitmap for @ref DEVICE2_t.160. */ /** @brief Bitmap for @ref DEVICE2_t.EmacMode. */ /** @brief Bitmap for @ref DEVICE2_t.EmacStatus. */ /** @brief Bitmap for @ref DEVICE2_t.EmacEvent. */ /** @brief Bitmap for @ref DEVICE2_t.LedControl. */ /** @brief Bitmap for @ref DEVICE2_t.EmacMacAddresses0High. */ /** @brief Bitmap for @ref DEVICE2_t.EmacMacAddresses0Low. */ /** @brief Bitmap for @ref DEVICE2_t.EmacMacAddresses1High. */ /** @brief Bitmap for @ref DEVICE2_t.EmacMacAddresses1Low. */ /** @brief Bitmap for @ref DEVICE2_t.EmacMacAddresses2High. */ /** @brief Bitmap for @ref DEVICE2_t.EmacMacAddresses2Low. */ /** @brief Bitmap for @ref DEVICE2_t.EmacMacAddresses3High. */ /** @brief Bitmap for @ref DEVICE2_t.EmacMacAddresses3Low. */ /** @brief Bitmap for @ref DEVICE2_t.WolPatternPointer. */ /** @brief Bitmap for @ref DEVICE2_t.WolPatternCfg. */ /** @brief Bitmap for @ref DEVICE2_t.438. */ /** @brief Bitmap for @ref DEVICE2_t.MtuSize. */ /** @brief Bitmap for @ref DEVICE2_t.MiiCommunication. */ /** @brief Bitmap for @ref DEVICE2_t.MiiMode. */ /** @brief Bitmap for @ref DEVICE2_t.TransmitMacMode. */ /** @brief Bitmap for @ref DEVICE2_t.TransmitMacStatus. */ /** @brief Bitmap for @ref DEVICE2_t.TransmitMacLengths. */ /** @brief Bitmap for @ref DEVICE2_t.ReceiveMacMode. */ /** @brief Bitmap for @ref DEVICE2_t.ReceiveMacStatus. */ /** @brief Bitmap for @ref DEVICE2_t.PerfectMatch1High. */ /** @brief Bitmap for @ref DEVICE2_t.PerfectMatch1Low. */ /** @brief Bitmap for @ref DEVICE2_t.PerfectMatch2High. */ /** @brief Bitmap for @ref DEVICE2_t.PerfectMatch2Low. */ /** @brief Bitmap for @ref DEVICE2_t.PerfectMatch3High. */ /** @brief Bitmap for @ref DEVICE2_t.PerfectMatch3Low. */ /** @brief Bitmap for @ref DEVICE2_t.PerfectMatch4High. */ /** @brief Bitmap for @ref DEVICE2_t.PerfectMatch4Low. */ /** @brief Bitmap for @ref DEVICE2_t.SgmiiStatus. */ /** @brief Bitmap for @ref DEVICE2_t.ReceiveListPlacementMode. */ /** @brief Bitmap for @ref DEVICE2_t.ReceiveListPlacementStatus. */ /** @brief Bitmap for @ref DEVICE2_t.CpmuControl. */ /** @brief Bitmap for @ref DEVICE2_t.NoLinkPowerModeClockPolicy. */ /** @brief Bitmap for @ref DEVICE2_t.LinkAwarePowerModeClockPolicy. */ /** @brief Bitmap for @ref DEVICE2_t.ApeSleepStateClockPolicy. */ /** @brief Bitmap for @ref DEVICE2_t.ClockSpeedOverridePolicy. */ /** @brief Bitmap for @ref DEVICE2_t.Status. */ /** @brief Bitmap for @ref DEVICE2_t.ClockStatus. */ /** @brief Bitmap for @ref DEVICE2_t.GphyControlStatus. */ /** @brief Bitmap for @ref DEVICE2_t.ChipId. */ /** @brief Bitmap for @ref DEVICE2_t.MutexRequest. */ /** @brief Bitmap for @ref DEVICE2_t.MutexGrant. */ /** @brief Bitmap for @ref DEVICE2_t.GphyStrap. */ /** @brief Bitmap for @ref DEVICE2_t.FlashClockControlPolicy. */ /** @brief Bitmap for @ref DEVICE2_t.TopLevelMiscellaneousControl1. */ /** @brief Bitmap for @ref DEVICE2_t.EeeMode. */ /** @brief Bitmap for @ref DEVICE2_t.EeeLinkIdleControl. */ /** @brief Bitmap for @ref DEVICE2_t.EeeControl. */ /** @brief Bitmap for @ref DEVICE2_t.GlobalMutexRequest. */ /** @brief Bitmap for @ref DEVICE2_t.GlobalMutexGrant. */ /** @brief Bitmap for @ref DEVICE2_t.TemperatureMonitorControl. */ /** @brief Bitmap for @ref DEVICE2_t.MemoryArbiterMode. */ /** @brief Bitmap for @ref DEVICE2_t.BufferManagerMode. */ /** @brief Bitmap for @ref DEVICE2_t.LsoNonlsoBdReadDmaCorruptionEnableControl. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscMode. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscStatus. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscEventMask. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscProgramCounter. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscCurrentInstruction. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscInterruptEnable. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscInterruptVector. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscHardwareBreakpoint. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscLastBranchAddress. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister0. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister1. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister2. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister3. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister4. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister5. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister6. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister7. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister8. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister9. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister10. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister11. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister12. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister13. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister14. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister15. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister16. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister17. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister18. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister19. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister20. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister21. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister22. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister23. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister24. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister25. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister26. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister27. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister28. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister29. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister30. */ /** @brief Bitmap for @ref DEVICE2_t.RxRiscRegister31. */ /** @brief Bitmap for @ref DEVICE2_t.6408. */ /** @brief Bitmap for @ref DEVICE2_t.PciPowerConsumptionInfo. */ /** @brief Bitmap for @ref DEVICE2_t.PciPowerDissipatedInfo. */ /** @brief Bitmap for @ref DEVICE2_t.PciVpdRequest. */ /** @brief Bitmap for @ref DEVICE2_t.PciVpdResponse. */ /** @brief Bitmap for @ref DEVICE2_t.PciVendorDeviceId. */ /** @brief Bitmap for @ref DEVICE2_t.PciSubsystemId. */ /** @brief Bitmap for @ref DEVICE2_t.PciClassCodeRevision. */ /** @brief Bitmap for @ref DEVICE2_t.64c0. */ /** @brief Bitmap for @ref DEVICE2_t.64c4. */ /** @brief Bitmap for @ref DEVICE2_t.64c8. */ /** @brief Bitmap for @ref DEVICE2_t.64dc. */ /** @brief Bitmap for @ref DEVICE2_t.PciSerialNumberLow. */ /** @brief Bitmap for @ref DEVICE2_t.PciSerialNumberHigh. */ /** @brief Bitmap for @ref DEVICE2_t.PciPowerBudget0. */ /** @brief Bitmap for @ref DEVICE2_t.PciPowerBudget1. */ /** @brief Bitmap for @ref DEVICE2_t.PciPowerBudget2. */ /** @brief Bitmap for @ref DEVICE2_t.PciPowerBudget3. */ /** @brief Bitmap for @ref DEVICE2_t.PciPowerBudget4. */ /** @brief Bitmap for @ref DEVICE2_t.PciPowerBudget5. */ /** @brief Bitmap for @ref DEVICE2_t.PciPowerBudget6. */ /** @brief Bitmap for @ref DEVICE2_t.PciPowerBudget7. */ /** @brief Bitmap for @ref DEVICE2_t.6530. */ /** @brief Bitmap for @ref DEVICE2_t.6550. */ /** @brief Bitmap for @ref DEVICE2_t.65f4. */ /** @brief Bitmap for @ref DEVICE2_t.GrcModeControl. */ /** @brief Bitmap for @ref DEVICE2_t.MiscellaneousConfig. */ /** @brief Bitmap for @ref DEVICE2_t.MiscellaneousLocalControl. */ /** @brief Bitmap for @ref DEVICE2_t.Timer. */ /** @brief Bitmap for @ref DEVICE2_t.RxCpuEvent. */ /** @brief Bitmap for @ref DEVICE2_t.6838. */ /** @brief Bitmap for @ref DEVICE2_t.MdiControl. */ /** @brief Bitmap for @ref DEVICE2_t.RxCpuEventEnable. */ /** @brief Bitmap for @ref DEVICE2_t.FastBootProgramCounter. */ /** @brief Bitmap for @ref DEVICE2_t.ExpansionRomAddr. */ /** @brief Bitmap for @ref DEVICE2_t.68f0. */ /** @brief Bitmap for @ref DEVICE2_t.EavRefClockControl. */ /** @brief Bitmap for @ref DEVICE2_t.7c04. */ }