0
0
mirror of https://github.com/edk2-porting/edk2-msm synced 2025-05-12 20:22:55 +00:00
Files
2023-01-09 15:18:23 +08:00

53 lines
1.2 KiB
C

//
// EMMC Driver
//
Device (SDC1)
{
//Name (_DEP, Package (One) // _DEP: Dependencies
//{
// \_SB.PEP0
//})
Name (_HID, "QCOM24BF") // _HID: Hardware ID
Name (_CID, "ACPIQCOM24BF") // _CID: Compatible ID
Name (_UID, Zero) // _UID: Unique ID
Name (_CCA, Zero) // _CCA: Cache Coherency Attribute
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Name (RBUF, ResourceTemplate ()
{
Memory32Fixed (ReadWrite,
0x0C0C4000, // Address Base
0x00000200, // Address Length
)
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
{
0x0000009D,
}
})
Return (RBUF) /* \_SB_.SDC1._CRS.RBUF */
}
Device (EMMC)
{
Method (_ADR, 0, NotSerialized) // _ADR: Address
{
Return (0x08)
}
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
{
Return (Zero)
}
}
Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
{
}
Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
}
}