Changeset 7c34b28f in mainline for uspace/srv
- Timestamp:
- 2011-01-07T15:10:52Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 61bfc370
- Parents:
- 3d5e190 (diff), acc7ce4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/srv
- Files:
-
- 4 added
- 10 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/port/ns16550.c
r3d5e190 r7c34b28f 36 36 37 37 #include <ipc/ipc.h> 38 #include <ipc/ bus.h>38 #include <ipc/irc.h> 39 39 #include <async.h> 40 40 #include <sysinfo.h> … … 122 122 123 123 if (cir_service) 124 async_msg_1(cir_phone, BUS_CLEAR_INTERRUPT,124 async_msg_1(cir_phone, IRC_CLEAR_INTERRUPT, 125 125 IPC_GET_IMETHOD(*call)); 126 126 } -
uspace/srv/hid/kbd/port/z8530.c
r3d5e190 r7c34b28f 36 36 37 37 #include <ipc/ipc.h> 38 #include <ipc/ bus.h>38 #include <ipc/irc.h> 39 39 #include <async.h> 40 40 #include <sysinfo.h> … … 110 110 111 111 if (cir_service) 112 async_msg_1(cir_phone, BUS_CLEAR_INTERRUPT,112 async_msg_1(cir_phone, IRC_CLEAR_INTERRUPT, 113 113 IPC_GET_IMETHOD(*call)); 114 114 } -
uspace/srv/hw/irc/fhc/fhc.c
r3d5e190 r7c34b28f 38 38 #include <ipc/ipc.h> 39 39 #include <ipc/services.h> 40 #include <ipc/ bus.h>40 #include <ipc/irc.h> 41 41 #include <ipc/ns.h> 42 42 #include <sysinfo.h> … … 83 83 callid = async_get_call(&call); 84 84 switch (IPC_GET_IMETHOD(call)) { 85 case BUS_CLEAR_INTERRUPT: 85 case IRC_ENABLE_INTERRUPT: 86 /* Noop */ 87 ipc_answer_0(callid, EOK); 88 break; 89 case IRC_CLEAR_INTERRUPT: 86 90 inr = IPC_GET_ARG1(call); 87 91 switch (inr) { -
uspace/srv/hw/irc/obio/obio.c
r3d5e190 r7c34b28f 44 44 #include <ipc/ipc.h> 45 45 #include <ipc/services.h> 46 #include <ipc/ bus.h>46 #include <ipc/irc.h> 47 47 #include <ipc/ns.h> 48 48 #include <sysinfo.h> … … 93 93 callid = async_get_call(&call); 94 94 switch (IPC_GET_IMETHOD(call)) { 95 case BUS_CLEAR_INTERRUPT: 95 case IRC_ENABLE_INTERRUPT: 96 /* Noop */ 97 ipc_answer_0(callid, EOK); 98 break; 99 case IRC_CLEAR_INTERRUPT: 96 100 inr = IPC_GET_ARG1(call); 97 101 base_virt[OBIO_CIR(inr & INO_MASK)] = 0; -
uspace/srv/hw/netif/dp8390/dp8390.c
r3d5e190 r7c34b28f 263 263 printf("Ethernet address "); 264 264 for (i = 0; i < 6; i++) 265 printf("% x%c", dep->de_address.ea_addr[i], i < 5 ? ':' : '\n');265 printf("%02x%c", dep->de_address.ea_addr[i], i < 5 ? ':' : '\n'); 266 266 267 267 /* -
uspace/srv/hw/netif/dp8390/dp8390.h
r3d5e190 r7c34b28f 245 245 #define outb_reg1(dep, reg, data) (outb(dep->de_dp8390_port + reg, data)) 246 246 247 #define SENDQ_NR 2/* Maximum size of the send queue */247 #define SENDQ_NR 1 /* Maximum size of the send queue */ 248 248 #define SENDQ_PAGES 6 /* 6 * DP_PAGESIZE >= 1514 bytes */ 249 249 -
uspace/srv/hw/netif/dp8390/dp8390_module.c
r3d5e190 r7c34b28f 41 41 #include <err.h> 42 42 #include <malloc.h> 43 #include <sysinfo.h> 43 44 #include <ipc/ipc.h> 44 45 #include <ipc/services.h> 46 #include <ipc/irc.h> 45 47 #include <net/modules.h> 46 48 #include <packet_client.h> … … 71 73 */ 72 74 #define IRQ_GET_ISR(call) ((int) IPC_GET_ARG2(call)) 75 76 static int irc_service = 0; 77 static int irc_phone = -1; 73 78 74 79 /** DP8390 kernel interrupt command sequence. … … 136 141 } 137 142 138 /** Changes the network interface state. 143 /** Change the network interface state. 144 * 139 145 * @param[in,out] device The network interface. 140 * @param[in] state The new state. 141 * @returns The new state. 146 * @param[in] state The new state. 147 * 148 * @return The new state. 149 * 142 150 */ 143 151 static int change_state(netif_device_t *device, device_state_t state) … … 272 280 return rc; 273 281 274 if (device->state != NETIF_ACTIVE) {282 if (device->state != NETIF_ACTIVE) { 275 283 netif_pq_release(packet_get_id(packet)); 276 284 return EFORWARD; … … 312 320 } 313 321 314 return change_state(device, NETIF_ACTIVE); 322 rc = change_state(device, NETIF_ACTIVE); 323 324 if (irc_service) 325 async_msg_1(irc_phone, IRC_ENABLE_INTERRUPT, dep->de_irq); 326 327 return rc; 315 328 } 316 329 … … 334 347 int netif_initialize(void) 335 348 { 349 sysarg_t apic; 350 sysarg_t i8259; 351 352 if ((sysinfo_get_value("apic", &apic) == EOK) && (apic)) 353 irc_service = SERVICE_APIC; 354 else if ((sysinfo_get_value("i8259", &i8259) == EOK) && (i8259)) 355 irc_service = SERVICE_I8259; 356 357 if (irc_service) { 358 while (irc_phone < 0) { 359 irc_phone = ipc_connect_me_to_blocking(PHONE_NS, irc_service, 360 0, 0); 361 } 362 } 363 364 async_set_interrupt_received(irq_handler); 365 336 366 sysarg_t phonehash; 337 async_set_interrupt_received(irq_handler);338 367 return ipc_connect_to_me(PHONE_NS, SERVICE_DP8390, 0, 0, &phonehash); 339 368 } -
uspace/srv/net/il/arp/arp.c
r3d5e190 r7c34b28f 215 215 (*proto)->service = service; 216 216 (*proto)->addr = address; 217 (*proto)->addr_data = address->value;217 (*proto)->addr_data = (uint8_t *) address->value; 218 218 219 219 rc = arp_addr_initialize(&(*proto)->addresses); … … 267 267 free(proto->addr_data); 268 268 proto->addr = address; 269 proto->addr_data = address->value;269 proto->addr_data = (uint8_t *) address->value; 270 270 } else { 271 271 rc = arp_proto_create(&proto, protocol, address); -
uspace/srv/net/il/arp/arp.h
r3d5e190 r7c34b28f 96 96 measured_string_t *addr; 97 97 /** Actual device hardware address data. */ 98 char*addr_data;98 uint8_t *addr_data; 99 99 /** Broadcast device hardware address. */ 100 100 measured_string_t *broadcast_addr; 101 101 /** Broadcast device hardware address data. */ 102 char*broadcast_data;102 uint8_t *broadcast_data; 103 103 /** Device identifier. */ 104 104 device_id_t device_id; … … 142 142 measured_string_t *addr; 143 143 /** Actual device protocol address data. */ 144 char*addr_data;144 uint8_t *addr_data; 145 145 /** Address map. */ 146 146 arp_addr_t addresses; … … 154 154 * Hardware address for the translation. NULL denotes an incomplete 155 155 * record with possible waiters. 156 */ 156 */ 157 157 measured_string_t *hw_addr; 158 158 /** Condition variable used for waiting for completion of the record. */ -
uspace/srv/net/nil/eth/eth.c
r3d5e190 r7c34b28f 407 407 408 408 printf("%s: Device registered (id: %d, service: %d: mtu: %zu, " 409 "mac: % x:%x:%x:%x:%x:%x, flags: 0x%x)\n",409 "mac: %02x:%02x:%02x:%02x:%02x:%02x, flags: 0x%x)\n", 410 410 NAME, device->device_id, device->service, device->mtu, 411 411 device->addr_data[0], device->addr_data[1], -
uspace/srv/net/nil/eth/eth.h
r3d5e190 r7c34b28f 91 91 /** Actual device hardware address. */ 92 92 measured_string_t *addr; 93 93 94 /** Actual device hardware address data. */ 94 char*addr_data;95 uint8_t *addr_data; 95 96 }; 96 97 -
uspace/srv/net/nil/nildummy/nildummy.h
r3d5e190 r7c34b28f 78 78 measured_string_t *addr; 79 79 /** Actual device hardware address data. */ 80 char*addr_data;80 uint8_t *addr_data; 81 81 }; 82 82
Note:
See TracChangeset
for help on using the changeset viewer.