pass device pciid through to accelerant
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42203 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ed55a28368
commit
f7f3828178
@ -67,6 +67,7 @@ struct overlay_registers;
|
||||
|
||||
|
||||
struct radeon_shared_info {
|
||||
uint32 device_id; // device pciid
|
||||
area_id mode_list_area; // area containing display mode list
|
||||
uint32 mode_count;
|
||||
|
||||
|
@ -242,6 +242,7 @@ init_driver(void)
|
||||
gDeviceInfo[found]->id = found;
|
||||
gDeviceInfo[found]->pci = info;
|
||||
gDeviceInfo[found]->registers = (uint8 *)info->u.h0.base_registers[0];
|
||||
gDeviceInfo[found]->device_id = kSupportedDevices[type].device_id;
|
||||
gDeviceInfo[found]->device_identifier = kSupportedDevices[type].name;
|
||||
gDeviceInfo[found]->device_chipset = kSupportedDevices[type].chipset;
|
||||
|
||||
|
@ -93,6 +93,7 @@ radeon_hd_init(radeon_info &info)
|
||||
frambufferMapper.Detach();
|
||||
|
||||
// Pass common information to accelerant
|
||||
info.shared_info->device_id = info.device_id;
|
||||
info.shared_info->device_chipset = info.device_chipset;
|
||||
info.shared_info->registers_area = info.registers_area;
|
||||
info.shared_info->frame_buffer_area = info.framebuffer_area;
|
||||
|
@ -32,6 +32,7 @@ struct radeon_info {
|
||||
area_id shared_area;
|
||||
|
||||
const char* device_identifier;
|
||||
uint32 device_id;
|
||||
uint16 device_chipset;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user