Changeset 1433ecda in mainline for uspace/drv/char
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/drv/char
- Files:
-
- 5 edited
-
i8042/i8042.h (modified) (1 diff)
-
msim-con/main.c (modified) (2 diffs)
-
ski-con/main.c (modified) (2 diffs)
-
ski-con/ski-con.c (modified) (2 diffs)
-
sun4v-con/main.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/i8042/i8042.h
r47b2d7e3 r1433ecda 56 56 uint8_t pad[3]; 57 57 ioport8_t status; 58 } __attribute__ ((packed)) i8042_regs_t;58 } __attribute__((packed)) i8042_regs_t; 59 59 60 60 /** i8042 Port. */ -
uspace/drv/char/msim-con/main.c
r47b2d7e3 r1433ecda 103 103 errno_t rc; 104 104 105 ddf_msg(LVL_DEBUG, "msim_con_dev_add(%p)", dev);105 ddf_msg(LVL_DEBUG, "msim_con_dev_add(%p)", dev); 106 106 107 107 msim_con = ddf_dev_data_alloc(dev, sizeof(msim_con_t)); … … 124 124 static errno_t msim_con_dev_remove(ddf_dev_t *dev) 125 125 { 126 msim_con_t *msim_con = (msim_con_t *)ddf_dev_data_get(dev);126 msim_con_t *msim_con = (msim_con_t *)ddf_dev_data_get(dev); 127 127 128 ddf_msg(LVL_DEBUG, "msim_con_dev_remove(%p)", dev);128 ddf_msg(LVL_DEBUG, "msim_con_dev_remove(%p)", dev); 129 129 130 return msim_con_remove(msim_con);130 return msim_con_remove(msim_con); 131 131 } 132 132 133 133 static errno_t msim_con_dev_gone(ddf_dev_t *dev) 134 134 { 135 msim_con_t *msim_con = (msim_con_t *)ddf_dev_data_get(dev);135 msim_con_t *msim_con = (msim_con_t *)ddf_dev_data_get(dev); 136 136 137 ddf_msg(LVL_DEBUG, "msim_con_dev_gone(%p)", dev);137 ddf_msg(LVL_DEBUG, "msim_con_dev_gone(%p)", dev); 138 138 139 return msim_con_gone(msim_con);139 return msim_con_gone(msim_con); 140 140 } 141 141 142 142 static errno_t msim_con_fun_online(ddf_fun_t *fun) 143 143 { 144 ddf_msg(LVL_DEBUG, "msim_con_fun_online()");145 return ddf_fun_online(fun);144 ddf_msg(LVL_DEBUG, "msim_con_fun_online()"); 145 return ddf_fun_online(fun); 146 146 } 147 147 148 148 static errno_t msim_con_fun_offline(ddf_fun_t *fun) 149 149 { 150 ddf_msg(LVL_DEBUG, "msim_con_fun_offline()");151 return ddf_fun_offline(fun);150 ddf_msg(LVL_DEBUG, "msim_con_fun_offline()"); 151 return ddf_fun_offline(fun); 152 152 } 153 153 -
uspace/drv/char/ski-con/main.c
r47b2d7e3 r1433ecda 65 65 ski_con_t *ski_con; 66 66 67 ddf_msg(LVL_DEBUG, "ski_con_dev_add(%p)", dev);67 ddf_msg(LVL_DEBUG, "ski_con_dev_add(%p)", dev); 68 68 ski_con = ddf_dev_data_alloc(dev, sizeof(ski_con_t)); 69 69 if (ski_con == NULL) { … … 79 79 static errno_t ski_con_dev_remove(ddf_dev_t *dev) 80 80 { 81 ski_con_t *ski_con = (ski_con_t *)ddf_dev_data_get(dev);81 ski_con_t *ski_con = (ski_con_t *)ddf_dev_data_get(dev); 82 82 83 ddf_msg(LVL_DEBUG, "ski_con_dev_remove(%p)", dev);83 ddf_msg(LVL_DEBUG, "ski_con_dev_remove(%p)", dev); 84 84 85 return ski_con_remove(ski_con);85 return ski_con_remove(ski_con); 86 86 } 87 87 88 88 static errno_t ski_con_dev_gone(ddf_dev_t *dev) 89 89 { 90 ski_con_t *ski_con = (ski_con_t *)ddf_dev_data_get(dev);90 ski_con_t *ski_con = (ski_con_t *)ddf_dev_data_get(dev); 91 91 92 ddf_msg(LVL_DEBUG, "ski_con_dev_gone(%p)", dev);92 ddf_msg(LVL_DEBUG, "ski_con_dev_gone(%p)", dev); 93 93 94 return ski_con_gone(ski_con);94 return ski_con_gone(ski_con); 95 95 } 96 96 97 97 static errno_t ski_con_fun_online(ddf_fun_t *fun) 98 98 { 99 ddf_msg(LVL_DEBUG, "ski_con_fun_online()");100 return ddf_fun_online(fun);99 ddf_msg(LVL_DEBUG, "ski_con_fun_online()"); 100 return ddf_fun_online(fun); 101 101 } 102 102 103 103 static errno_t ski_con_fun_offline(ddf_fun_t *fun) 104 104 { 105 ddf_msg(LVL_DEBUG, "ski_con_fun_offline()");106 return ddf_fun_offline(fun);105 ddf_msg(LVL_DEBUG, "ski_con_fun_offline()"); 106 return ddf_fun_offline(fun); 107 107 } 108 108 -
uspace/drv/char/ski-con/ski-con.c
r47b2d7e3 r1433ecda 169 169 #ifdef UARCH_ia64 170 170 asm volatile ( 171 "mov r15 = %1\n"172 "break 0x80000;;\n" /* modifies r8 */173 "mov %0 = r8;;\n"174 175 : "=r" (ch)176 : "i" (SKI_GETCHAR)177 : "r15", "r8"171 "mov r15 = %1\n" 172 "break 0x80000;;\n" /* modifies r8 */ 173 "mov %0 = r8;;\n" 174 175 : "=r" (ch) 176 : "i" (SKI_GETCHAR) 177 : "r15", "r8" 178 178 ); 179 179 #else … … 199 199 #ifdef UARCH_ia64 200 200 asm volatile ( 201 "mov r15 = %0\n"202 "mov r32 = %1\n" /* r32 is in0 */203 "break 0x80000\n" /* modifies r8 */204 :205 : "i" (SKI_PUTCHAR), "r" (ch)206 : "r15", "in0", "r8"201 "mov r15 = %0\n" 202 "mov r32 = %1\n" /* r32 is in0 */ 203 "break 0x80000\n" /* modifies r8 */ 204 : 205 : "i" (SKI_PUTCHAR), "r" (ch) 206 : "r15", "in0", "r8" 207 207 ); 208 208 #else -
uspace/drv/char/sun4v-con/main.c
r47b2d7e3 r1433ecda 94 94 errno_t rc; 95 95 96 ddf_msg(LVL_DEBUG, "sun4v_con_dev_add(%p)", dev);96 ddf_msg(LVL_DEBUG, "sun4v_con_dev_add(%p)", dev); 97 97 sun4v_con = ddf_dev_data_alloc(dev, sizeof(sun4v_con_t)); 98 98 if (sun4v_con == NULL) { … … 114 114 static errno_t sun4v_con_dev_remove(ddf_dev_t *dev) 115 115 { 116 sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev);116 sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev); 117 117 118 ddf_msg(LVL_DEBUG, "sun4v_con_dev_remove(%p)", dev);118 ddf_msg(LVL_DEBUG, "sun4v_con_dev_remove(%p)", dev); 119 119 120 return sun4v_con_remove(sun4v_con);120 return sun4v_con_remove(sun4v_con); 121 121 } 122 122 123 123 static errno_t sun4v_con_dev_gone(ddf_dev_t *dev) 124 124 { 125 sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev);125 sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev); 126 126 127 ddf_msg(LVL_DEBUG, "sun4v_con_dev_gone(%p)", dev);127 ddf_msg(LVL_DEBUG, "sun4v_con_dev_gone(%p)", dev); 128 128 129 return sun4v_con_gone(sun4v_con);129 return sun4v_con_gone(sun4v_con); 130 130 } 131 131 132 132 static errno_t sun4v_con_fun_online(ddf_fun_t *fun) 133 133 { 134 ddf_msg(LVL_DEBUG, "sun4v_con_fun_online()");135 return ddf_fun_online(fun);134 ddf_msg(LVL_DEBUG, "sun4v_con_fun_online()"); 135 return ddf_fun_online(fun); 136 136 } 137 137 138 138 static errno_t sun4v_con_fun_offline(ddf_fun_t *fun) 139 139 { 140 ddf_msg(LVL_DEBUG, "sun4v_con_fun_offline()");141 return ddf_fun_offline(fun);140 ddf_msg(LVL_DEBUG, "sun4v_con_fun_offline()"); 141 return ddf_fun_offline(fun); 142 142 } 143 143
Note:
See TracChangeset
for help on using the changeset viewer.
