Changeset e285656 in mainline for uspace/lib/c/include
- Timestamp:
- 2011-12-14T20:45:49Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0cfb05e
- Parents:
- d6d15ec (diff), 9916841 (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/lib/c/include
- Files:
-
- 1 added
- 5 edited
-
bitops.h (modified) (1 diff)
-
ddi.h (modified) (1 diff)
-
device/nic.h (modified) (1 diff)
-
device/pci.h (added)
-
ipc/net.h (modified) (1 diff)
-
net/device.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/bitops.h
rd6d15ec re285656 40 40 /** Mask with bit @a n set. */ 41 41 #define BIT_V(type, n) \ 42 ((type) 1 << (n))42 ((type) 1 << (n)) 43 43 44 44 /** Mask with rightmost @a n bits set. */ -
uspace/lib/c/include/ddi.h
rd6d15ec re285656 40 40 #include <task.h> 41 41 42 typedef struct { 43 /** Physical memory */ 44 void *phys; 45 46 /** Virtual memory */ 47 void *virt; 48 49 /** Size in pages */ 50 size_t size; 51 52 /** Mapping flags */ 53 unsigned int flags; 54 } dmamem_t; 55 42 56 extern int device_assign_devno(void); 43 57 extern int physmem_map(void *, void *, size_t, unsigned int); 58 extern int dmamem_map(dmamem_t *, size_t, unsigned int, unsigned int); 59 extern int dmamem_unmap(dmamem_t *); 60 extern int dmamem_lock(void *, void **, size_t); 61 extern int dmamem_unlock(void *, size_t); 44 62 extern int iospace_enable(task_id_t, void *, unsigned long); 45 63 extern int pio_enable(void *, size_t, void **); -
uspace/lib/c/include/device/nic.h
rd6d15ec re285656 127 127 extern int nic_vlan_get_mask(async_sess_t *, nic_vlan_mask_t *); 128 128 extern int nic_vlan_set_mask(async_sess_t *, const nic_vlan_mask_t *); 129 extern int nic_vlan_set_tag(async_sess_t *, uint16_t, int, int);129 extern int nic_vlan_set_tag(async_sess_t *, uint16_t, bool, bool); 130 130 131 131 extern int nic_wol_virtue_add(async_sess_t *, nic_wv_type_t, const void *, -
uspace/lib/c/include/ipc/net.h
rd6d15ec re285656 305 305 * 306 306 */ 307 #define IPC_GET_DEVICE_HANDLE(call) ((devman_handle_t) IPC_GET_ARG2(call))307 #define IPC_GET_DEVICE_HANDLE(call) ((devman_handle_t) IPC_GET_ARG2(call)) 308 308 309 309 /** Return the device driver service message argument. -
uspace/lib/c/include/net/device.h
rd6d15ec re285656 77 77 #define NIC_PART_NUMBER_MAX_LENGTH 64 78 78 #define NIC_SERIAL_NUMBER_MAX_LENGTH 64 79 80 #define NIC_DEFECTIVE_LONG 0x0001 81 #define NIC_DEFECTIVE_SHORT 0x0002 82 #define NIC_DEFECTIVE_BAD_CRC 0x0010 83 #define NIC_DEFECTIVE_BAD_IPV4_CHECKSUM 0x0020 84 #define NIC_DEFECTIVE_BAD_IPV6_CHECKSUM 0x0040 85 #define NIC_DEFECTIVE_BAD_TCP_CHECKSUM 0x0080 86 #define NIC_DEFECTIVE_BAD_UDP_CHECKSUM 0x0100 79 87 80 88 /**
Note:
See TracChangeset
for help on using the changeset viewer.
