/dev/bsp/CORTADO
Jump to navigation
Jump to search
/bsp/CORTADO is the BSP entity that handles methods related to the Cortado platform. It is only available on board types BSP_HARDWARE_VERSION_HOLLYWOOD_CORTADO and BSP_HARDWARE_VERSION_HOLLYWOOD_CORTADO_ESPRESSO. Not much is really known about Cortado, its BSP entity's usage or NESCAFE.
Attributes
FPGAType
| Options | BSP_AO_QUERY_DATA_INDIRECT
|
|---|---|
| Permissions | BSP_PERMISSIONS_IOS
|
| Data size | 0x4 |
| Method | Description |
|---|---|
| Query | Gets the FPGA type. Either 1 or 2. |
FPGAVersion
| Options | BSP_AO_QUERY_DATA_INDIRECT
|
|---|---|
| Permissions | BSP_PERMISSIONS_IOS
|
| Data size | 0x4 |
| Method | Description |
|---|---|
| Query | Gets the FPGA version. |
SYSADDR
This attribute points to the BSP_CORTADO_SYSTEM_ADDRESSES global struct which initialised on bootup via the main bspInstall function which calls bspCortadoInstall.
| Options | BSP_AO_QUERY_DATA_INDIRECT
|
|---|---|
| Permissions | BSP_PERMISSIONS_IOS
|
| Data size | 0x40 |
| Method | Description |
|---|---|
| Query | Gets BSP_CORTADO_SYSTEM_ADDRESSES
|
BSP_CORTADO_SYSTEM_ADDRESSES
struct BSP_CORTADO_SYSTEM_ADDRESSES // sizeof = 0x40
{
BSP_MEM_MAPPED_REGION efbAperture;
BSP_MEM_MAPPED_REGION pciMemorySpace;
BSP_MEM_MAPPED_REGION cortadoDDR2;
BSP_MEM_MAPPED_REGION pciConfigSpace;
BSP_MEM_MAPPED_REGION pciIOSpace;
BSP_MEM_MAPPED_REGION pciROMSpace;
BSP_MEM_MAPPED_REGION cortadoSystemConfig;
BSP_MEM_MAPPED_REGION satadoConfigRegisters;
};
struct BSP_MEM_MAPPED_REGION
{
u32 address;
u32 size;
}PCIConfig
This attribute points to the BSP_CORTADO_PCI_CONFIGURATION global struct which can be read and written to.
| Permissions | BSP_PERMISSIONS_IOS
|
|---|---|
| Data size | 0x20 |
| Method | Description |
|---|---|
| Read | Gets the PCI config. |
| Write | Writes the PCI config. |
BSP_CORTADO_PCI_CONFIGURATION
struct BSP_CORTADO_PCI_CONFIGURATION // sizeof = 0x20
{
u16 vendorID;
u16 deviceID;
u16 pciFunction;
u32 pciBAR[6];
u16 activeBARBitmask;
};NESCAFEConfig
NESCAFE was a device attached to the Cortado board and acted as an EXI bridge device.
| Options | BSP_AO_INIT_GLOBAL
|
|---|---|
| Permissions | BSP_PERMISSIONS_IOS
|
| Data size | 0x0 |
| Method | Description |
|---|---|
| Init | Initialises the global struct CORTADO_NESCAFE_DATA from certain values in BSP_CORTADO_SYSTEM_ADDRESSES, which is different based on FPGA version.
|
CORTADO_NESCAFE_DATA
struct CORTADO_NESCAFE_DATA // sizeof = 0xC
{
u32 bar[3];
};SATAPhyReset
Only functional if the FPGAType is 2.
| Permissions | BSP_PERMISSIONS_IOS
|
|---|---|
| Data size | 0x1 |
| Method | Description |
|---|---|
| Read | |
| Write |