Changeset 6886705 in mainline for uspace/srv/hw/bus/cuda_adb/cuda_adb.c
- Timestamp:
- 2017-10-02T20:13:41Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 943aaf1b
- Parents:
- 300f4c4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/bus/cuda_adb/cuda_adb.c
r300f4c4 r6886705 50 50 #include <assert.h> 51 51 #include "cuda_adb.h" 52 #include "cuda_hw.h" 52 53 53 54 #define NAME "cuda_adb" … … 68 69 69 70 static void adb_packet_handle(uint8_t *data, size_t size, bool autopoll); 70 71 72 /** B register fields */73 enum {74 TREQ = 0x08,75 TACK = 0x10,76 TIP = 0x2077 };78 79 /** IER register fields */80 enum {81 IER_CLR = 0x00,82 IER_SET = 0x80,83 84 SR_INT = 0x04,85 ALL_INT = 0x7f86 };87 88 /** ACR register fields */89 enum {90 SR_OUT = 0x1091 };92 93 /** Packet types */94 enum {95 PT_ADB = 0x00,96 PT_CUDA = 0x0197 };98 99 /** CUDA packet types */100 enum {101 CPT_AUTOPOLL = 0x01102 };103 104 enum {105 ADB_MAX_ADDR = 16106 };107 71 108 72 static irq_pio_range_t cuda_ranges[] = { … … 172 136 rc = loc_service_register("adb/kbd", &service_id); 173 137 if (rc != EOK) { 174 printf(NAME ": Unable to register service %s.\n", "adb/k db");138 printf(NAME ": Unable to register service %s.\n", "adb/kbd"); 175 139 return rc; 176 140 } … … 181 145 rc = loc_service_register("adb/mouse", &service_id); 182 146 if (rc != EOK) { 183 printf(NAME ": Unable to register servi se %s.\n", "adb/mouse");147 printf(NAME ": Unable to register service %s.\n", "adb/mouse"); 184 148 return rc; 185 149 }
Note:
See TracChangeset
for help on using the changeset viewer.