various fgx drivers: fix cloning accelerants, allow for modelist cloning.
This commit is contained in:
parent
77034a15f8
commit
eb2b376271
@ -522,7 +522,7 @@ create_display_modes(const char* name, edid1_info* edid,
|
||||
& ~(B_PAGE_SIZE - 1);
|
||||
display_mode *list;
|
||||
area_id area = create_area(name, (void **)&list, B_ANY_ADDRESS,
|
||||
size, B_NO_LOCK, B_READ_AREA | B_WRITE_AREA);
|
||||
size, B_NO_LOCK, B_READ_AREA | B_WRITE_AREA | B_CLONEABLE_AREA);
|
||||
if (area < B_OK)
|
||||
return area;
|
||||
|
||||
|
@ -488,7 +488,8 @@ status_t create_mode_list(void) {
|
||||
max_size = (((MODE_COUNT * 4) * sizeof(display_mode)) + (B_PAGE_SIZE-1)) & ~(B_PAGE_SIZE-1);
|
||||
/* create an area to hold the info */
|
||||
si->mode_area = my_mode_list_area =
|
||||
create_area("MGA accelerant mode info", (void **)&my_mode_list, B_ANY_ADDRESS, max_size, B_NO_LOCK, B_READ_AREA | B_WRITE_AREA);
|
||||
create_area("MGA accelerant mode info", (void **)&my_mode_list, B_ANY_ADDRESS, max_size,
|
||||
B_NO_LOCK, B_READ_AREA | B_WRITE_AREA | B_CLONEABLE_AREA);
|
||||
if (my_mode_list_area < B_OK) return my_mode_list_area;
|
||||
|
||||
/* walk through our predefined list and see which modes fit this device */
|
||||
|
@ -356,7 +356,8 @@ status_t create_mode_list(void) {
|
||||
max_size = (((MODE_COUNT * 4) * sizeof(display_mode)) + (B_PAGE_SIZE-1)) & ~(B_PAGE_SIZE-1);
|
||||
/* create an area to hold the info */
|
||||
si->mode_area = my_mode_list_area =
|
||||
create_area("nm accelerant mode info", (void **)&my_mode_list, B_ANY_ADDRESS, max_size, B_NO_LOCK, B_READ_AREA | B_WRITE_AREA);
|
||||
create_area("nm accelerant mode info", (void **)&my_mode_list, B_ANY_ADDRESS, max_size,
|
||||
B_NO_LOCK, B_READ_AREA | B_WRITE_AREA | B_CLONEABLE_AREA);
|
||||
if (my_mode_list_area < B_OK) return my_mode_list_area;
|
||||
|
||||
/* walk through our predefined list and see which modes fit this device */
|
||||
|
@ -632,7 +632,7 @@ create_mode_list(void)
|
||||
/* create an area to hold the info */
|
||||
si->mode_area = my_mode_list_area = create_area("NV accelerant mode info",
|
||||
(void **)&my_mode_list, B_ANY_ADDRESS, max_size, B_NO_LOCK,
|
||||
B_READ_AREA | B_WRITE_AREA);
|
||||
B_READ_AREA | B_WRITE_AREA | B_CLONEABLE_AREA);
|
||||
if (my_mode_list_area < B_OK)
|
||||
return my_mode_list_area;
|
||||
|
||||
|
@ -538,7 +538,8 @@ status_t create_mode_list(void)
|
||||
max_size = (((MODE_COUNT * 4) * sizeof(display_mode)) + (B_PAGE_SIZE-1)) & ~(B_PAGE_SIZE-1);
|
||||
/* create an area to hold the info */
|
||||
si->mode_area = my_mode_list_area =
|
||||
create_area("NV accelerant mode info", (void **)&my_mode_list, B_ANY_ADDRESS, max_size, B_NO_LOCK, B_READ_AREA | B_WRITE_AREA);
|
||||
create_area("NV accelerant mode info", (void **)&my_mode_list, B_ANY_ADDRESS, max_size,
|
||||
B_NO_LOCK, B_READ_AREA | B_WRITE_AREA | B_CLONEABLE_AREA);
|
||||
if (my_mode_list_area < B_OK) return my_mode_list_area;
|
||||
|
||||
/* walk through our predefined list and see which modes fit this device */
|
||||
|
@ -540,7 +540,8 @@ status_t create_mode_list(void)
|
||||
max_size = (((MODE_COUNT * 4) * sizeof(display_mode)) + (B_PAGE_SIZE-1)) & ~(B_PAGE_SIZE-1);
|
||||
/* create an area to hold the info */
|
||||
si->mode_area = my_mode_list_area =
|
||||
create_area("NV accelerant mode info", (void **)&my_mode_list, B_ANY_ADDRESS, max_size, B_NO_LOCK, B_READ_AREA | B_WRITE_AREA);
|
||||
create_area("NV accelerant mode info", (void **)&my_mode_list, B_ANY_ADDRESS, max_size,
|
||||
B_NO_LOCK, B_READ_AREA | B_WRITE_AREA | B_CLONEABLE_AREA);
|
||||
if (my_mode_list_area < B_OK) return my_mode_list_area;
|
||||
|
||||
/* walk through our predefined list and see which modes fit this device */
|
||||
|
Loading…
Reference in New Issue
Block a user