1214903Sgonzo/*-
2214903Sgonzo * Copyright (c) 2016 Andriy Voskoboinyk <avos@FreeBSD.org>
3214903Sgonzo *
4214903Sgonzo * Permission to use, copy, modify, and distribute this software for any
5214903Sgonzo * purpose with or without fee is hereby granted, provided that the above
6214903Sgonzo * copyright notice and this permission notice appear in all copies.
7214903Sgonzo *
8214903Sgonzo * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9214903Sgonzo * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10214903Sgonzo * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11214903Sgonzo * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12214903Sgonzo * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13214903Sgonzo * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14214903Sgonzo * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15214903Sgonzo *
16214903Sgonzo * $FreeBSD$
17214903Sgonzo */
18214903Sgonzo
19214903Sgonzo#ifndef RTWN_PCI_REG_H
20214903Sgonzo#define RTWN_PCI_REG_H
21214903Sgonzo
22214903Sgonzoint		rtwn_pci_write_1(struct rtwn_softc *, uint16_t, uint8_t);
23214903Sgonzoint		rtwn_pci_write_2(struct rtwn_softc *, uint16_t, uint16_t);
24214903Sgonzoint		rtwn_pci_write_4(struct rtwn_softc *, uint16_t, uint32_t);
25214903Sgonzouint8_t		rtwn_pci_read_1(struct rtwn_softc *, uint16_t);
26214903Sgonzouint16_t	rtwn_pci_read_2(struct rtwn_softc *, uint16_t);
27214903Sgonzouint32_t	rtwn_pci_read_4(struct rtwn_softc *, uint16_t);
28214903Sgonzovoid		rtwn_pci_delay(struct rtwn_softc *, int);
29214903Sgonzo
30214903Sgonzo#endif	/* RTWN_PCI_REG_H */
31214903Sgonzo