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:
@@ -67,6 +67,7 @@ struct overlay_registers;
|
|||||||
|
|
||||||
|
|
||||||
struct radeon_shared_info {
|
struct radeon_shared_info {
|
||||||
|
uint32 device_id; // device pciid
|
||||||
area_id mode_list_area; // area containing display mode list
|
area_id mode_list_area; // area containing display mode list
|
||||||
uint32 mode_count;
|
uint32 mode_count;
|
||||||
|
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ init_driver(void)
|
|||||||
gDeviceInfo[found]->id = found;
|
gDeviceInfo[found]->id = found;
|
||||||
gDeviceInfo[found]->pci = info;
|
gDeviceInfo[found]->pci = info;
|
||||||
gDeviceInfo[found]->registers = (uint8 *)info->u.h0.base_registers[0];
|
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_identifier = kSupportedDevices[type].name;
|
||||||
gDeviceInfo[found]->device_chipset = kSupportedDevices[type].chipset;
|
gDeviceInfo[found]->device_chipset = kSupportedDevices[type].chipset;
|
||||||
|
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ radeon_hd_init(radeon_info &info)
|
|||||||
frambufferMapper.Detach();
|
frambufferMapper.Detach();
|
||||||
|
|
||||||
// Pass common information to accelerant
|
// Pass common information to accelerant
|
||||||
|
info.shared_info->device_id = info.device_id;
|
||||||
info.shared_info->device_chipset = info.device_chipset;
|
info.shared_info->device_chipset = info.device_chipset;
|
||||||
info.shared_info->registers_area = info.registers_area;
|
info.shared_info->registers_area = info.registers_area;
|
||||||
info.shared_info->frame_buffer_area = info.framebuffer_area;
|
info.shared_info->frame_buffer_area = info.framebuffer_area;
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ struct radeon_info {
|
|||||||
area_id shared_area;
|
area_id shared_area;
|
||||||
|
|
||||||
const char* device_identifier;
|
const char* device_identifier;
|
||||||
|
uint32 device_id;
|
||||||
uint16 device_chipset;
|
uint16 device_chipset;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user