implement pci_map_register(), which gets information about a device's
mapping register, maps it, and returns all of the relevant information. deprecate use of pci_{io,mem}_find(), but leave them around (for a while) for backward compatibility with third-party drivers.
This commit is contained in:
parent
a0e583f33e
commit
2eae910210
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pcivar.h,v 1.19 1997/04/10 23:12:23 cgd Exp $ */
|
||||
/* $NetBSD: pcivar.h,v 1.20 1997/04/13 19:46:01 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -139,10 +139,9 @@ struct pci_attach_args {
|
|||
* Configuration space access and utility functions. (Note that most,
|
||||
* e.g. make_tag, conf_read, conf_write are declared by pci_machdep.h.)
|
||||
*/
|
||||
int pci_io_find __P((pci_chipset_tag_t, pcitag_t, int, bus_addr_t *,
|
||||
int pci_map_register __P((struct pci_attach_args *, int, pcireg_t, int,
|
||||
bus_space_tag_t *, bus_space_handle_t *, bus_addr_t *,
|
||||
bus_size_t *));
|
||||
int pci_mem_find __P((pci_chipset_tag_t, pcitag_t, int, bus_addr_t *,
|
||||
bus_size_t *, int *));
|
||||
|
||||
/*
|
||||
* Helper functions for autoconfiguration.
|
||||
|
@ -150,4 +149,14 @@ int pci_mem_find __P((pci_chipset_tag_t, pcitag_t, int, bus_addr_t *,
|
|||
void pci_devinfo __P((pcireg_t, pcireg_t, int, char *));
|
||||
void set_pci_isa_bridge_callback __P((void (*)(void *), void *));
|
||||
|
||||
/*
|
||||
* Backward compatibility functions. NO NEW CODE SHOULD USE THESE.
|
||||
*
|
||||
* pci_io_find() and pci_mem_find() deprecated as of April 13, 1997.
|
||||
*/
|
||||
int pci_io_find __P((pci_chipset_tag_t, pcitag_t, int, bus_addr_t *,
|
||||
bus_size_t *));
|
||||
int pci_mem_find __P((pci_chipset_tag_t, pcitag_t, int, bus_addr_t *,
|
||||
bus_size_t *, int *));
|
||||
|
||||
#endif /* _DEV_PCI_PCIVAR_H_ */
|
||||
|
|
Loading…
Reference in New Issue