Changeset 00aece0 in mainline for uspace/lib/c/include/device/pci.h


Ignore:
Timestamp:
2012-02-18T16:47:38Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/device/pci.h

    rbd5f3b7 r00aece0  
    11/*
    2  * Copyright (c) 2006 Ondrej Palkovsky
     2 * Copyright (c) 2011 Jiri Michalec
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libcipc
     29/** @addtogroup libc
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef LIBC_FB_H_
    36 #define LIBC_FB_H_
     35#ifndef LIBC_DEVICE_PCI_H_
     36#define LIBC_DEVICE_PCI_H_
    3737
    38 #include <ipc/common.h>
     38#include <async.h>
     39
     40#define PCI_DEVICE_ID  0x02
    3941
    4042typedef 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;
    7451
    75 enum {
    76         FB_CCAP_NONE = 0,
    77         FB_CCAP_STYLE,
    78         FB_CCAP_INDEXED,
    79         FB_CCAP_RGB
    80 };
     52extern int pci_config_space_read_8(async_sess_t *, uint32_t, uint8_t *);
     53extern int pci_config_space_read_16(async_sess_t *, uint32_t, uint16_t *);
     54extern int pci_config_space_read_32(async_sess_t *, uint32_t, uint32_t *);
     55
     56extern int pci_config_space_write_8(async_sess_t *, uint32_t, uint8_t);
     57extern int pci_config_space_write_16(async_sess_t *, uint32_t, uint16_t);
     58extern int pci_config_space_write_32(async_sess_t *, uint32_t, uint32_t);
    8159
    8260#endif
Note: See TracChangeset for help on using the changeset viewer.