agp.h (ff663cf8705bea101d5f73cf471855c85242575e) agp.h (c2980d8c2961113f24863f70d8ad016f55224c81)
1/*
2 * AGPGART
3 * Copyright (C) 2004 Silicon Graphics, Inc.
4 * Copyright (C) 2002-2004 Dave Jones
5 * Copyright (C) 1999 Jeff Hartmann
6 * Copyright (C) 1999 Precision Insight, Inc.
7 * Copyright (C) 1999 Xi Graphics, Inc.
8 *

--- 108 unchanged lines hidden (view full) ---

117 void (*free_by_type)(struct agp_memory *);
118 struct page *(*agp_alloc_page)(struct agp_bridge_data *);
119 int (*agp_alloc_pages)(struct agp_bridge_data *, struct agp_memory *, size_t);
120 void (*agp_destroy_page)(struct page *, int flags);
121 void (*agp_destroy_pages)(struct agp_memory *);
122 int (*agp_type_to_mask_type) (struct agp_bridge_data *, int);
123 void (*chipset_flush)(struct agp_bridge_data *);
124
1/*
2 * AGPGART
3 * Copyright (C) 2004 Silicon Graphics, Inc.
4 * Copyright (C) 2002-2004 Dave Jones
5 * Copyright (C) 1999 Jeff Hartmann
6 * Copyright (C) 1999 Precision Insight, Inc.
7 * Copyright (C) 1999 Xi Graphics, Inc.
8 *

--- 108 unchanged lines hidden (view full) ---

117 void (*free_by_type)(struct agp_memory *);
118 struct page *(*agp_alloc_page)(struct agp_bridge_data *);
119 int (*agp_alloc_pages)(struct agp_bridge_data *, struct agp_memory *, size_t);
120 void (*agp_destroy_page)(struct page *, int flags);
121 void (*agp_destroy_pages)(struct agp_memory *);
122 int (*agp_type_to_mask_type) (struct agp_bridge_data *, int);
123 void (*chipset_flush)(struct agp_bridge_data *);
124
125 int (*agp_map_page)(void *addr, dma_addr_t *ret);
126 void (*agp_unmap_page)(void *addr, dma_addr_t dma);
125 int (*agp_map_page)(struct page *page, dma_addr_t *ret);
126 void (*agp_unmap_page)(struct page *page, dma_addr_t dma);
127 int (*agp_map_memory)(struct agp_memory *mem);
128 void (*agp_unmap_memory)(struct agp_memory *mem);
129};
130
131struct agp_bridge_data {
132 const struct agp_version *version;
133 const struct agp_bridge_driver *driver;
134 struct vm_operations_struct *vm_ops;
135 void *previous_size;
136 void *current_size;
137 void *dev_private_data;
138 struct pci_dev *dev;
139 u32 __iomem *gatt_table;
140 u32 *gatt_table_real;
141 unsigned long scratch_page;
127 int (*agp_map_memory)(struct agp_memory *mem);
128 void (*agp_unmap_memory)(struct agp_memory *mem);
129};
130
131struct agp_bridge_data {
132 const struct agp_version *version;
133 const struct agp_bridge_driver *driver;
134 struct vm_operations_struct *vm_ops;
135 void *previous_size;
136 void *current_size;
137 void *dev_private_data;
138 struct pci_dev *dev;
139 u32 __iomem *gatt_table;
140 u32 *gatt_table_real;
141 unsigned long scratch_page;
142 unsigned long scratch_page_real;
142 struct page *scratch_page_page;
143 dma_addr_t scratch_page_dma;
144 unsigned long gart_bus_addr;
145 unsigned long gatt_bus_addr;
146 u32 mode;
147 enum chipset_type type;
148 unsigned long *key_list;
149 atomic_t current_memory_agp;
150 atomic_t agp_in_use;

--- 225 unchanged lines hidden ---
143 dma_addr_t scratch_page_dma;
144 unsigned long gart_bus_addr;
145 unsigned long gatt_bus_addr;
146 u32 mode;
147 enum chipset_type type;
148 unsigned long *key_list;
149 atomic_t current_memory_agp;
150 atomic_t agp_in_use;

--- 225 unchanged lines hidden ---