xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/include/pci_ops_linux.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2019 Realtek Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  *****************************************************************************/
15 #ifndef __PCI_OPS_LINUX_H__
16 #define __PCI_OPS_LINUX_H__
17 
18 u8 os_pci_read8(struct dvobj_priv *dvobj, u32 addr);
19 u16 os_pci_read16(struct dvobj_priv *dvobj, u32 addr);
20 u32 os_pci_read32(struct dvobj_priv *dvobj, u32 addr);
21 int os_pci_write8(struct dvobj_priv *dvobj, u32 addr, u8 val);
22 int os_pci_write16(struct dvobj_priv *dvobj, u32 addr, u16 val);
23 int os_pci_write32(struct dvobj_priv *dvobj, u32 addr, u32 val);
24 #endif /*__PCI_OPS_LINUX_H__*/
25