Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_pci.c

    rb7fd2a0 r99e8fb7b  
    5151} pci_dev_iface_funcs_t;
    5252
    53 errno_t pci_config_space_read_8(async_sess_t *sess, uint32_t address, uint8_t *val)
     53int pci_config_space_read_8(async_sess_t *sess, uint32_t address, uint8_t *val)
    5454{
    5555        sysarg_t res = 0;
    5656       
    5757        async_exch_t *exch = async_exchange_begin(sess);
    58         errno_t rc = async_req_2_1(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
     58        int rc = async_req_2_1(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
    5959            IPC_M_CONFIG_SPACE_READ_8, address, &res);
    6060        async_exchange_end(exch);
     
    6464}
    6565
    66 errno_t pci_config_space_read_16(async_sess_t *sess, uint32_t address,
     66int pci_config_space_read_16(async_sess_t *sess, uint32_t address,
    6767    uint16_t *val)
    6868{
     
    7070       
    7171        async_exch_t *exch = async_exchange_begin(sess);
    72         errno_t rc = async_req_2_1(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
     72        int rc = async_req_2_1(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
    7373            IPC_M_CONFIG_SPACE_READ_16, address, &res);
    7474        async_exchange_end(exch);
     
    7878}
    7979
    80 errno_t pci_config_space_read_32(async_sess_t *sess, uint32_t address,
     80int pci_config_space_read_32(async_sess_t *sess, uint32_t address,
    8181    uint32_t *val)
    8282{
     
    8484       
    8585        async_exch_t *exch = async_exchange_begin(sess);
    86         errno_t rc = async_req_2_1(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
     86        int rc = async_req_2_1(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
    8787            IPC_M_CONFIG_SPACE_READ_32, address, &res);
    8888        async_exchange_end(exch);
     
    9292}
    9393
    94 errno_t pci_config_space_write_8(async_sess_t *sess, uint32_t address, uint8_t val)
    95 {
    96         async_exch_t *exch = async_exchange_begin(sess);
    97         errno_t rc = async_req_3_0(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
     94int pci_config_space_write_8(async_sess_t *sess, uint32_t address, uint8_t val)
     95{
     96        async_exch_t *exch = async_exchange_begin(sess);
     97        int rc = async_req_3_0(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
    9898            IPC_M_CONFIG_SPACE_WRITE_8, address, val);
    9999        async_exchange_end(exch);
     
    102102}
    103103
    104 errno_t pci_config_space_write_16(async_sess_t *sess, uint32_t address,
     104int pci_config_space_write_16(async_sess_t *sess, uint32_t address,
    105105    uint16_t val)
    106106{
    107107        async_exch_t *exch = async_exchange_begin(sess);
    108         errno_t rc = async_req_3_0(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
     108        int rc = async_req_3_0(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
    109109            IPC_M_CONFIG_SPACE_WRITE_16, address, val);
    110110        async_exchange_end(exch);
     
    113113}
    114114
    115 errno_t pci_config_space_write_32(async_sess_t *sess, uint32_t address,
     115int pci_config_space_write_32(async_sess_t *sess, uint32_t address,
    116116    uint32_t val)
    117117{
    118118        async_exch_t *exch = async_exchange_begin(sess);
    119         errno_t rc = async_req_3_0(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
     119        int rc = async_req_3_0(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
    120120            IPC_M_CONFIG_SPACE_WRITE_32, address, val);
    121121        async_exchange_end(exch);
     
    160160        uint32_t address = DEV_IPC_GET_ARG1(*call);
    161161        uint8_t value;
    162         errno_t ret = pci_iface->config_space_read_8(fun, address, &value);
     162        int ret = pci_iface->config_space_read_8(fun, address, &value);
    163163        if (ret != EOK) {
    164164                async_answer_0(callid, ret);
     
    178178        uint32_t address = DEV_IPC_GET_ARG1(*call);
    179179        uint16_t value;
    180         errno_t ret = pci_iface->config_space_read_16(fun, address, &value);
     180        int ret = pci_iface->config_space_read_16(fun, address, &value);
    181181        if (ret != EOK) {
    182182                async_answer_0(callid, ret);
     
    195195        uint32_t address = DEV_IPC_GET_ARG1(*call);
    196196        uint32_t value;
    197         errno_t ret = pci_iface->config_space_read_32(fun, address, &value);
     197        int ret = pci_iface->config_space_read_32(fun, address, &value);
    198198        if (ret != EOK) {
    199199                async_answer_0(callid, ret);
     
    213213        uint32_t address = DEV_IPC_GET_ARG1(*call);
    214214        uint8_t value = DEV_IPC_GET_ARG2(*call);
    215         errno_t ret = pci_iface->config_space_write_8(fun, address, value);
     215        int ret = pci_iface->config_space_write_8(fun, address, value);
    216216        if (ret != EOK) {
    217217                async_answer_0(callid, ret);
     
    231231        uint32_t address = DEV_IPC_GET_ARG1(*call);
    232232        uint16_t value = DEV_IPC_GET_ARG2(*call);
    233         errno_t ret = pci_iface->config_space_write_16(fun, address, value);
     233        int ret = pci_iface->config_space_write_16(fun, address, value);
    234234        if (ret != EOK) {
    235235                async_answer_0(callid, ret);
     
    249249        uint32_t address = DEV_IPC_GET_ARG1(*call);
    250250        uint32_t value = DEV_IPC_GET_ARG2(*call);
    251         errno_t ret = pci_iface->config_space_write_32(fun, address, value);
     251        int ret = pci_iface->config_space_write_32(fun, address, value);
    252252        if (ret != EOK) {
    253253                async_answer_0(callid, ret);
Note: See TracChangeset for help on using the changeset viewer.