1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ALPHA_AGP_BACKEND_H
3 #define _ALPHA_AGP_BACKEND_H 1
5 typedef union _alpha_agp_mode {
20 typedef struct _alpha_agp_info {
21 struct pci_controller *hose;
27 alpha_agp_mode capability;
30 struct alpha_agp_ops *ops;
33 struct alpha_agp_ops {
34 int (*setup)(alpha_agp_info *);
35 void (*cleanup)(alpha_agp_info *);
36 int (*configure)(alpha_agp_info *);
37 int (*bind)(alpha_agp_info *, off_t, struct agp_memory *);
38 int (*unbind)(alpha_agp_info *, off_t, struct agp_memory *);
39 unsigned long (*translate)(alpha_agp_info *, dma_addr_t);
43 #endif /* _ALPHA_AGP_BACKEND_H */