* Add card_info struct used by AtomBIOS parser

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42535 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexander von Gluck IV
2011-08-01 22:56:18 +00:00
parent 2df3def596
commit cc9e8e94d4
2 changed files with 15 additions and 2 deletions
@@ -25,10 +25,23 @@
#ifndef ATOM_H
#define ATOM_H
#ifndef __HAIKU__
#include <linux/types.h>
#endif
#include "card.h"
#else
struct card_info {
struct drm_device *dev;
void (* reg_write)(struct card_info *, uint32_t, uint32_t); /* filled by driver */
uint32_t (* reg_read)(struct card_info *, uint32_t); /* filled by driver */
void (* ioreg_write)(struct card_info *, uint32_t, uint32_t); /* filled by driver */
uint32_t (* ioreg_read)(struct card_info *, uint32_t); /* filled by driver */
void (* mc_write)(struct card_info *, uint32_t, uint32_t); /* filled by driver */
uint32_t (* mc_read)(struct card_info *, uint32_t); /* filled by driver */
void (* pll_write)(struct card_info *, uint32_t, uint32_t); /* filled by driver */
uint32_t (* pll_read)(struct card_info *, uint32_t); /* filled by driver */
};
#endif
#define ATOM_BIOS_MAGIC 0xAA55
#define ATOM_ATI_MAGIC_PTR 0x30
+1 -1
View File
@@ -13,7 +13,7 @@
// AtomBios includes
extern "C" {
//#include "atom.h"
#include "atom.h"
}