Changeset 7f1c620 in mainline for arch/ppc32/src/drivers/cuda.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/src/drivers/cuda.c
r991779c5 r7f1c620 60 60 61 61 62 static volatile __u8*cuda = NULL;62 static volatile uint8_t *cuda = NULL; 63 63 static iroutine vector; 64 64 … … 191 191 192 192 193 void send_packet(const __u8kind, index_t count, ...);194 195 196 static void receive_packet( __u8 *kind, index_t count, __u8data[])193 void send_packet(const uint8_t kind, index_t count, ...); 194 195 196 static void receive_packet(uint8_t *kind, index_t count, uint8_t data[]) 197 197 { 198 198 cuda[B] = cuda[B] & ~TIP; … … 238 238 int cuda_get_scancode(void) 239 239 { 240 __u8kind;241 __u8data[4];240 uint8_t kind; 241 uint8_t data[4]; 242 242 243 243 receive_packet(&kind, 4, data); … … 254 254 255 255 if (scan_code != -1) { 256 __u8 scancode = (__u8) scan_code;256 uint8_t scancode = (uint8_t) scan_code; 257 257 if ((scancode & 0x80) != 0x80) 258 258 chardev_push_character(&kbrd, lchars[scancode & 0x7f]); … … 276 276 277 277 278 void cuda_init( __addressbase, size_t size)279 { 280 cuda = ( __u8*) hw_map(base, size);278 void cuda_init(uintptr_t base, size_t size) 279 { 280 cuda = (uint8_t *) hw_map(base, size); 281 281 282 282 int_register(CUDA_IRQ, "cuda", cuda_irq); … … 291 291 292 292 293 void send_packet(const __u8kind, index_t count, ...)293 void send_packet(const uint8_t kind, index_t count, ...) 294 294 { 295 295 index_t i;
Note:
See TracChangeset
for help on using the changeset viewer.