--- aty.h.old Tue Oct 26 20:43:50 1999 +++ aty.h Thu Oct 28 00:57:14 1999 @@ -962,4 +962,29 @@ #define PWR_MGT_STATUS_MASK 0xC0000000 #define PWR_MGT_STATUS_SUSPEND 0x80000000 +/* LCD Panel configuration registers */ +/* added by Josh Huber */ + +#define LCD_INDEX 0x00A4 /* Dword offset 0_29 */ + +#define LCD_DATA 0x00A8 /* Dword offset 0_2A */ + +#define IDX_CONFIG_PANEL 0 +#define IDX_LCD_GEN_CTRL 1 +#define IDX_DSTN_CONTROL 2 +#define IDX_HFB_PITCH_ADDR 3 +#define IDX_HORZ_STRETCHING 4 +#define IDX_VERT_STRETCHING 5 +#define IDX_EXT_VERT_STRETCH 6 +#define IDX_LT_GIO 7 +#define IDX_POWER_MANAGEMENT 8 +#define IDX_ZVGPIO 9 + +/* LCD Panel Testing IOCTLs */ +#define ATY_IOC_MAGIC 'A' +#define IDX_REG_SET _IOW(ATY_IOC_MAGIC, 1, __u32) +#define IDX_REG_GET _IOR(ATY_IOC_MAGIC, 2, __u32) +#define LCD_REG_SET _IOW(ATY_IOC_MAGIC, 3, __u32) +#define LCD_REG_GET _IOR(ATY_IOC_MAGIC, 4, __u32) + #endif /* REGMACH64_H */