xosd_hw.h File Reference
This header file contains identifiers and register-level driver functions (or macros) that can be used to access the Xilinx MVI Video On-Screen-Display (OSD) device.
More...
#include "xio.h"
Go to the source code of this file.
Defines
|
-
#define XOSD_CTL 0x000
- Control.
-
#define XOSD_SS 0x010
- Screen Size.
-
#define XOSD_BC0 0x014
- Background Color Channel 0.
-
#define XOSD_BC1 0x018
- Background Color Channel 1.
-
#define XOSD_BC2 0x01C
- Background Color Channel 2.
-
#define XOSD_L0C 0x020
- Layer 0 Control.
-
#define XOSD_L0P 0x024
- Layer 0 Position.
-
#define XOSD_L0S 0x028
- Layer 0 Size.
-
#define XOSD_L1C 0x030
- Layer 1 Control.
-
#define XOSD_L1P 0x034
- Layer 1 Position.
-
#define XOSD_L1S 0x038
- Layer 1 Size.
-
#define XOSD_L2C 0x040
- Layer 2 Control.
-
#define XOSD_L2P 0x044
- Layer 2 Position.
-
#define XOSD_L2S 0x048
- Layer 2 Size.
-
#define XOSD_L3C 0x050
- Layer 3 Control.
-
#define XOSD_L3P 0x054
- Layer 3 Position.
-
#define XOSD_L3S 0x058
- Layer 3 Size.
-
#define XOSD_L4C 0x060
- Layer 4 Control.
-
#define XOSD_L4P 0x064
- Layer 4 Position.
-
#define XOSD_L4S 0x068
- Layer 4 Size.
-
#define XOSD_L5C 0x070
- Layer 5 Control.
-
#define XOSD_L5P 0x074
- Layer 5 Position.
-
#define XOSD_L5S 0x078
- Layer 5 Size.
-
#define XOSD_L6C 0x080
- Layer 6 Control.
-
#define XOSD_L6P 0x084
- Layer 6 Position.
-
#define XOSD_L6S 0x088
- Layer 6 Size.
-
#define XOSD_L7C 0x090
- Layer 7 Control.
-
#define XOSD_L7P 0x094
- Layer 7 Position.
-
#define XOSD_L7S 0x098
- Layer 7 Size.
-
#define XOSD_GCWBA 0x0A0
- GPU Write Bank Address.
-
#define XOSD_GCABA 0x0A4
- GPU Active Bank Address.
-
#define XOSD_GCD 0x0A8
- GPU Data.
-
#define XOSD_VER 0x0F0
- Version Register.
-
#define XOSD_RST 0x100
- Software Reset.
-
#define XOSD_GIER 0x21C
- Global Interrupt Enable Register.
-
#define XOSD_ISR 0x220
- Interrupt Status Register.
-
#define XOSD_IER 0x228
- Interrupt Enable Register.
|
-
#define XOSD_LAYER_SIZE 0x10
-
#define XOSD_LXC 0x00
- Layer Control.
-
#define XOSD_LXP 0x04
- Layer Position.
-
#define XOSD_LXS 0x08
- Layer Size.
|
|
|
|
|
|
|
|
|
|
|
-
#define XOSD_GCWBA_GCNUM_MASK 0x00000700
- Graphics Controller Number.
-
#define XOSD_GCWBA_GCNUM_SHIFT 8
- Bit shift of Graphics Controller Number.
- #define XOSD_GCWBA_BANK_MASK 0x00000007
- Controls which bank to write GPU instructions and Color LUT data into.
-
#define XOSD_GCWBA_INS0 0x00000000
-
#define XOSD_GCWBA_INS1 0x00000001
-
#define XOSD_GCWBA_COL0 0x00000002
-
#define XOSD_GCWBA_COL1 0x00000003
-
#define XOSD_GCWBA_TXT0 0x00000004
-
#define XOSD_GCWBA_TXT1 0x00000005
-
#define XOSD_GCWBA_CHR0 0x00000006
-
#define XOSD_GCWBA_CHR1 0x00000007
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
#define XOSD_In32 XIo_In32
-
#define XOSD_Out32 XIo_Out32
- #define XOSD_ReadReg(BaseAddress, RegOffset) XOSD_In32((BaseAddress) + (RegOffset))
- Read the given register.
- #define XOSD_WriteReg(BaseAddress, RegOffset, Data) XOSD_Out32((BaseAddress) + (RegOffset), (Data))
- Write the given register.
Detailed Description
This header file contains identifiers and register-level driver functions (or macros) that can be used to access the Xilinx MVI Video On-Screen-Display (OSD) device.
For more information about the operation of this device, see the hardware specification and documentation in the higher level driver xosd.h source code file.
MODIFICATION HISTORY:
Ver Who Date Changes
----- ---- -------- -------------------------------------------------------
1.00a xd 08/01/08 First release
Definition in file xosd_hw.h.
Define Documentation
#define XOSD_GCWBA_BANK_MASK 0x00000007 |
Controls which bank to write GPU instructions and Color LUT data into.
Definition at line 236 of file xosd_hw.h.
#define XOSD_IXR_ALLIERR_MASK |
Value:
Mask for all error interrupts.
Definition at line 305 of file xosd_hw.h.
#define XOSD_IXR_ALLINTR_MASK |
Value:
Mask for all interrupts.
Definition at line 312 of file xosd_hw.h.
#define XOSD_ReadReg |
( |
BaseAddress, |
|
|
RegOffset |
|
) |
XOSD_In32((BaseAddress) + (RegOffset)) |
Read the given register.
- Parameters:
-
| BaseAddress | is the base address of the device |
| RegOffset | is the register offset to be read |
- Returns:
- The 32-bit value of the register
- Note:
- C-style signature: u32 XOSD_ReadReg(u32 BaseAddress, u32 RegOffset)
Definition at line 452 of file xosd_hw.h.
#define XOSD_WriteReg |
( |
BaseAddress, |
|
|
RegOffset, |
|
|
Data |
|
) |
XOSD_Out32((BaseAddress) + (RegOffset), (Data)) |