Changeset 1b11576d in mainline for uspace/lib
- Timestamp:
- 2010-10-23T16:04:12Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c77b4d6
- Parents:
- 84c20da (diff), 58b833c (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
- Files:
-
- 21 added
- 12 deleted
- 5 edited
- 1 moved
-
c/Makefile (modified) (1 diff)
-
c/generic/adt/dynamic_fifo.c (modified) (5 diffs)
-
c/generic/ddi.c (modified) (1 diff)
-
c/generic/device/char.c (added)
-
c/generic/device/hw_res.c (added)
-
c/generic/devman.c (added)
-
c/include/ddi.h (modified) (1 diff)
-
c/include/device/char.h (added)
-
c/include/device/hw_res.h (added)
-
c/include/devman.h (added)
-
c/include/ipc/dev_iface.h (added)
-
c/include/ipc/devman.h (added)
-
c/include/ipc/driver.h (added)
-
c/include/ipc/serial.h (added)
-
c/include/ipc/serial_ctl.h (added)
-
c/include/ipc/services.h (modified) (1 diff)
-
drv/Makefile (moved) (moved from uspace/srv/hw/bus/pci/Makefile ) (1 diff)
-
drv/generic/dev_iface.c (added)
-
drv/generic/driver.c (added)
-
drv/generic/remote_char.c (added)
-
drv/generic/remote_res.c (added)
-
drv/include/char.h (added)
-
drv/include/dev_iface.h (added)
-
drv/include/driver.h (added)
-
drv/include/remote_char.h (added)
-
drv/include/remote_res.h (added)
-
drv/include/resource.h (added)
-
pci/COPYING (deleted)
-
pci/VERSION (deleted)
-
pci/access.c (deleted)
-
pci/generic.c (deleted)
-
pci/header.h (deleted)
-
pci/i386-ports.c (deleted)
-
pci/internal.h (deleted)
-
pci/names.c (deleted)
-
pci/pci.h (deleted)
-
pci/pci_ids.h (deleted)
-
pci/sysdep.h (deleted)
-
pci/types.h (deleted)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/Makefile
r84c20da r1b11576d 57 57 generic/clipboard.c \ 58 58 generic/devmap.c \ 59 generic/devman.c \ 60 generic/device/hw_res.c \ 61 generic/device/char.c \ 59 62 generic/event.c \ 60 63 generic/errno.c \ -
uspace/lib/c/generic/adt/dynamic_fifo.c
r84c20da r1b11576d 28 28 29 29 /** @addtogroup libc 30 * @{30 * @{ 31 31 */ 32 32 … … 34 34 * Dynamic first in first out positive integer queue implementation. 35 35 */ 36 37 #include <adt/dynamic_fifo.h> 36 38 37 39 #include <errno.h> 38 40 #include <malloc.h> 39 41 #include <mem.h> 40 41 #include <adt/dynamic_fifo.h>42 42 43 43 /** Internal magic value for a consistency check. */ … … 106 106 int dyn_fifo_push(dyn_fifo_ref fifo, int value, int max_size) 107 107 { 108 int * new_items;108 int *new_items; 109 109 110 110 if (!dyn_fifo_is_valid(fifo)) … … 149 149 /** Returns and excludes the first item in the queue. 150 150 * 151 * @param[in,out] fifo iThe dynamic queue.151 * @param[in,out] fifo The dynamic queue. 152 152 * @returns Value of the first item in the queue. 153 153 * @returns EINVAL if the queue is not valid. … … 189 189 /** Clears and destroys the queue. 190 190 * 191 * @param[in,out] fifoThe dynamic queue.192 * @returnsEOK on success.193 * @returnsEINVAL if the queue is not valid.191 * @param[in,out] fifo The dynamic queue. 192 * @returns EOK on success. 193 * @returns EINVAL if the queue is not valid. 194 194 */ 195 195 int dyn_fifo_destroy(dyn_fifo_ref fifo) -
uspace/lib/c/generic/ddi.c
r84c20da r1b11576d 96 96 } 97 97 98 /** Enable an interrupt. 99 * 100 * @param irq the interrupt. 101 * 102 * @return Zero on success, negative error code otherwise. 103 */ 104 int interrupt_enable(int irq) 105 { 106 return __SYSCALL2(SYS_INTERRUPT_ENABLE, (sysarg_t) irq, 1); 107 } 108 109 /** Disable an interrupt. 110 * 111 * @param irq the interrupt. 112 * 113 * @return Zero on success, negative error code otherwise. 114 */ 115 int interrupt_disable(int irq) 116 { 117 return __SYSCALL2(SYS_INTERRUPT_ENABLE, (sysarg_t) irq, 0); 118 } 119 98 120 /** Enable PIO for specified I/O range. 99 121 * -
uspace/lib/c/include/ddi.h
r84c20da r1b11576d 42 42 extern int iospace_enable(task_id_t, void *, unsigned long); 43 43 extern int pio_enable(void *, size_t, void **); 44 extern int interrupt_enable(int); 45 extern int interrupt_disable(int); 44 46 45 47 #endif -
uspace/lib/c/include/ipc/services.h
r84c20da r1b11576d 45 45 SERVICE_VFS, 46 46 SERVICE_DEVMAP, 47 SERVICE_DEVMAN, 47 48 SERVICE_FHC, 48 49 SERVICE_OBIO, -
uspace/lib/drv/Makefile
r84c20da r1b11576d 28 28 # 29 29 30 USPACE_PREFIX = ../../../.. 31 LIBS = $(LIBPCI_PREFIX)/libpci.a 32 EXTRA_CFLAGS = -I$(LIBPCI_PREFIX) 33 BINARY = pci 30 USPACE_PREFIX = ../.. 31 EXTRA_CFLAGS = -Iinclude 32 LIBRARY = libdrv 34 33 35 34 SOURCES = \ 36 pci.c 35 generic/driver.c \ 36 generic/dev_iface.c \ 37 generic/remote_res.c \ 38 generic/remote_char.c 37 39 38 40 include $(USPACE_PREFIX)/Makefile.common
Note:
See TracChangeset
for help on using the changeset viewer.
