diff options
Diffstat (limited to 'drivers/char/agp/generic.c')
-rw-r--r-- | drivers/char/agp/generic.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/char/agp/generic.c b/drivers/char/agp/generic.c index b6650a63197d..3e3625affdd1 100644 --- a/drivers/char/agp/generic.c +++ b/drivers/char/agp/generic.c | |||
@@ -188,7 +188,7 @@ void agp_free_memory(struct agp_memory *curr) | |||
188 | if (curr == NULL) | 188 | if (curr == NULL) |
189 | return; | 189 | return; |
190 | 190 | ||
191 | if (curr->is_bound == TRUE) | 191 | if (curr->is_bound) |
192 | agp_unbind_memory(curr); | 192 | agp_unbind_memory(curr); |
193 | 193 | ||
194 | if (curr->type >= AGP_USER_TYPES) { | 194 | if (curr->type >= AGP_USER_TYPES) { |
@@ -414,20 +414,20 @@ int agp_bind_memory(struct agp_memory *curr, off_t pg_start) | |||
414 | if (curr == NULL) | 414 | if (curr == NULL) |
415 | return -EINVAL; | 415 | return -EINVAL; |
416 | 416 | ||
417 | if (curr->is_bound == TRUE) { | 417 | if (curr->is_bound) { |
418 | printk(KERN_INFO PFX "memory %p is already bound!\n", curr); | 418 | printk(KERN_INFO PFX "memory %p is already bound!\n", curr); |
419 | return -EINVAL; | 419 | return -EINVAL; |
420 | } | 420 | } |
421 | if (curr->is_flushed == FALSE) { | 421 | if (!curr->is_flushed) { |
422 | curr->bridge->driver->cache_flush(); | 422 | curr->bridge->driver->cache_flush(); |
423 | curr->is_flushed = TRUE; | 423 | curr->is_flushed = true; |
424 | } | 424 | } |
425 | ret_val = curr->bridge->driver->insert_memory(curr, pg_start, curr->type); | 425 | ret_val = curr->bridge->driver->insert_memory(curr, pg_start, curr->type); |
426 | 426 | ||
427 | if (ret_val != 0) | 427 | if (ret_val != 0) |
428 | return ret_val; | 428 | return ret_val; |
429 | 429 | ||
430 | curr->is_bound = TRUE; | 430 | curr->is_bound = true; |
431 | curr->pg_start = pg_start; | 431 | curr->pg_start = pg_start; |
432 | return 0; | 432 | return 0; |
433 | } | 433 | } |
@@ -449,7 +449,7 @@ int agp_unbind_memory(struct agp_memory *curr) | |||
449 | if (curr == NULL) | 449 | if (curr == NULL) |
450 | return -EINVAL; | 450 | return -EINVAL; |
451 | 451 | ||
452 | if (curr->is_bound != TRUE) { | 452 | if (!curr->is_bound) { |
453 | printk(KERN_INFO PFX "memory %p was not bound!\n", curr); | 453 | printk(KERN_INFO PFX "memory %p was not bound!\n", curr); |
454 | return -EINVAL; | 454 | return -EINVAL; |
455 | } | 455 | } |
@@ -459,7 +459,7 @@ int agp_unbind_memory(struct agp_memory *curr) | |||
459 | if (ret_val != 0) | 459 | if (ret_val != 0) |
460 | return ret_val; | 460 | return ret_val; |
461 | 461 | ||
462 | curr->is_bound = FALSE; | 462 | curr->is_bound = false; |
463 | curr->pg_start = 0; | 463 | curr->pg_start = 0; |
464 | return 0; | 464 | return 0; |
465 | } | 465 | } |
@@ -757,7 +757,7 @@ u32 agp_collect_device_status(struct agp_bridge_data *bridge, u32 requested_mode | |||
757 | EXPORT_SYMBOL(agp_collect_device_status); | 757 | EXPORT_SYMBOL(agp_collect_device_status); |
758 | 758 | ||
759 | 759 | ||
760 | void agp_device_command(u32 bridge_agpstat, int agp_v3) | 760 | void agp_device_command(u32 bridge_agpstat, bool agp_v3) |
761 | { | 761 | { |
762 | struct pci_dev *device = NULL; | 762 | struct pci_dev *device = NULL; |
763 | int mode; | 763 | int mode; |
@@ -821,7 +821,7 @@ void agp_generic_enable(struct agp_bridge_data *bridge, u32 requested_mode) | |||
821 | /* If we have 3.5, we can do the isoch stuff. */ | 821 | /* If we have 3.5, we can do the isoch stuff. */ |
822 | if (bridge->minor_version >= 5) | 822 | if (bridge->minor_version >= 5) |
823 | agp_3_5_enable(bridge); | 823 | agp_3_5_enable(bridge); |
824 | agp_device_command(bridge_agpstat, TRUE); | 824 | agp_device_command(bridge_agpstat, true); |
825 | return; | 825 | return; |
826 | } else { | 826 | } else { |
827 | /* Disable calibration cycle in RX91<1> when not in AGP3.0 mode of operation.*/ | 827 | /* Disable calibration cycle in RX91<1> when not in AGP3.0 mode of operation.*/ |
@@ -838,7 +838,7 @@ void agp_generic_enable(struct agp_bridge_data *bridge, u32 requested_mode) | |||
838 | } | 838 | } |
839 | 839 | ||
840 | /* AGP v<3 */ | 840 | /* AGP v<3 */ |
841 | agp_device_command(bridge_agpstat, FALSE); | 841 | agp_device_command(bridge_agpstat, false); |
842 | } | 842 | } |
843 | EXPORT_SYMBOL(agp_generic_enable); | 843 | EXPORT_SYMBOL(agp_generic_enable); |
844 | 844 | ||
@@ -1086,9 +1086,9 @@ int agp_generic_insert_memory(struct agp_memory * mem, off_t pg_start, int type) | |||
1086 | j++; | 1086 | j++; |
1087 | } | 1087 | } |
1088 | 1088 | ||
1089 | if (mem->is_flushed == FALSE) { | 1089 | if (!mem->is_flushed) { |
1090 | bridge->driver->cache_flush(); | 1090 | bridge->driver->cache_flush(); |
1091 | mem->is_flushed = TRUE; | 1091 | mem->is_flushed = true; |
1092 | } | 1092 | } |
1093 | 1093 | ||
1094 | for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { | 1094 | for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { |