pci_user.h revision 1.4 1 1.3 pooka #include "rumpcomp_userfeatures_pci.h"
2 1.3 pooka
3 1.1 pooka void *rumpcomp_pci_map(unsigned long, unsigned long);
4 1.1 pooka int rumpcomp_pci_confread(unsigned, unsigned, unsigned, int, unsigned int *);
5 1.1 pooka int rumpcomp_pci_confwrite(unsigned, unsigned, unsigned, int, unsigned int);
6 1.1 pooka
7 1.2 pooka int rumpcomp_pci_irq_map(unsigned, unsigned, unsigned, int, unsigned);
8 1.2 pooka void *rumpcomp_pci_irq_establish(unsigned, int (*)(void *), void *);
9 1.1 pooka
10 1.1 pooka /* XXX: needs work: support boundary-restricted allocations */
11 1.2 pooka int rumpcomp_pci_dmalloc(size_t, size_t, unsigned long *, unsigned long *);
12 1.4 pooka #ifdef rumpcomp_pci_free
13 1.4 pooka void rumpcomp_pci_free(unsigned long, size_t);
14 1.4 pooka #endif
15 1.2 pooka
16 1.2 pooka struct rumpcomp_pci_dmaseg {
17 1.2 pooka unsigned long ds_pa;
18 1.2 pooka unsigned long ds_len;
19 1.2 pooka unsigned long ds_vacookie;
20 1.2 pooka };
21 1.2 pooka int rumpcomp_pci_dmamem_map(struct rumpcomp_pci_dmaseg *, size_t, size_t,
22 1.2 pooka void **);
23 1.1 pooka
24 1.1 pooka unsigned long rumpcomp_pci_virt_to_mach(void *);
25