Changeset 00aece0 in mainline for uspace/lib/c/include/device/pci.h
- Timestamp:
- 2012-02-18T16:47:38Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4449c6c
- Parents:
- bd5f3b7 (diff), f943dd3 (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. - File:
-
- 1 moved
-
uspace/lib/c/include/device/pci.h (moved) (moved from uspace/lib/c/include/ipc/fb.h ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/device/pci.h
rbd5f3b7 r00aece0 1 1 /* 2 * Copyright (c) 20 06 Ondrej Palkovsky2 * Copyright (c) 2011 Jiri Michalec 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup libc ipc29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef LIBC_ FB_H_36 #define LIBC_ FB_H_35 #ifndef LIBC_DEVICE_PCI_H_ 36 #define LIBC_DEVICE_PCI_H_ 37 37 38 #include <ipc/common.h> 38 #include <async.h> 39 40 #define PCI_DEVICE_ID 0x02 39 41 40 42 typedef enum { 41 FB_PUTCHAR = IPC_FIRST_USER_METHOD, 42 FB_CLEAR, 43 FB_GET_CSIZE, 44 FB_GET_COLOR_CAP, 45 FB_CURSOR_VISIBILITY, 46 FB_CURSOR_GOTO, 47 FB_SCROLL, 48 FB_VIEWPORT_SWITCH, 49 FB_VIEWPORT_CREATE, 50 FB_VIEWPORT_DELETE, 51 FB_SET_STYLE, 52 FB_SET_COLOR, 53 FB_SET_RGB_COLOR, 54 FB_GET_RESOLUTION, 55 FB_DRAW_TEXT_DATA, 56 FB_FLUSH, 57 FB_DRAW_IMGMAP, 58 FB_PREPARE_SHM, 59 FB_DROP_SHM, 60 FB_SHM2IMGMAP, 61 FB_VP_DRAW_IMGMAP, 62 FB_VP2IMGMAP, 63 FB_DROP_IMGMAP, 64 FB_ANIM_CREATE, 65 FB_ANIM_DROP, 66 FB_ANIM_ADDIMGMAP, 67 FB_ANIM_CHGVP, 68 FB_ANIM_START, 69 FB_ANIM_STOP, 70 FB_POINTER_MOVE, 71 FB_SCREEN_YIELD, 72 FB_SCREEN_RECLAIM 73 } fb_request_t; 43 IPC_M_CONFIG_SPACE_READ_8, 44 IPC_M_CONFIG_SPACE_READ_16, 45 IPC_M_CONFIG_SPACE_READ_32, 46 47 IPC_M_CONFIG_SPACE_WRITE_8, 48 IPC_M_CONFIG_SPACE_WRITE_16, 49 IPC_M_CONFIG_SPACE_WRITE_32 50 } pci_dev_iface_funcs_t; 74 51 75 enum { 76 FB_CCAP_NONE = 0, 77 FB_CCAP_STYLE, 78 FB_CCAP_INDEXED, 79 FB_CCAP_RGB 80 }; 52 extern int pci_config_space_read_8(async_sess_t *, uint32_t, uint8_t *); 53 extern int pci_config_space_read_16(async_sess_t *, uint32_t, uint16_t *); 54 extern int pci_config_space_read_32(async_sess_t *, uint32_t, uint32_t *); 55 56 extern int pci_config_space_write_8(async_sess_t *, uint32_t, uint8_t); 57 extern int pci_config_space_write_16(async_sess_t *, uint32_t, uint16_t); 58 extern int pci_config_space_write_32(async_sess_t *, uint32_t, uint32_t); 81 59 82 60 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
