backend.c (597473720f4dc69749542bfcfed4a927a43d935e) | backend.c (ffe9d02e4152ab653652717a1907d0058b764d58) |
---|---|
1/* 2 * AGPGART driver backend routines. 3 * Copyright (C) 2004 Silicon Graphics, Inc. 4 * Copyright (C) 2002-2003 Dave Jones. 5 * Copyright (C) 1999 Jeff Hartmann. 6 * Copyright (C) 1999 Precision Insight, Inc. 7 * Copyright (C) 1999 Xi Graphics, Inc. 8 * --- 48 unchanged lines hidden (view full) --- 57struct agp_bridge_data *agp_bridge; 58LIST_HEAD(agp_bridges); 59EXPORT_SYMBOL(agp_bridge); 60EXPORT_SYMBOL(agp_bridges); 61EXPORT_SYMBOL(agp_find_bridge); 62 63/** 64 * agp_backend_acquire - attempt to acquire an agp backend. | 1/* 2 * AGPGART driver backend routines. 3 * Copyright (C) 2004 Silicon Graphics, Inc. 4 * Copyright (C) 2002-2003 Dave Jones. 5 * Copyright (C) 1999 Jeff Hartmann. 6 * Copyright (C) 1999 Precision Insight, Inc. 7 * Copyright (C) 1999 Xi Graphics, Inc. 8 * --- 48 unchanged lines hidden (view full) --- 57struct agp_bridge_data *agp_bridge; 58LIST_HEAD(agp_bridges); 59EXPORT_SYMBOL(agp_bridge); 60EXPORT_SYMBOL(agp_bridges); 61EXPORT_SYMBOL(agp_find_bridge); 62 63/** 64 * agp_backend_acquire - attempt to acquire an agp backend. |
65 * @pdev: the PCI device |
|
65 * 66 */ 67struct agp_bridge_data *agp_backend_acquire(struct pci_dev *pdev) 68{ 69 struct agp_bridge_data *bridge; 70 71 bridge = agp_find_bridge(pdev); 72 --- 5 unchanged lines hidden (view full) --- 78 atomic_inc(&bridge->agp_in_use); 79 return bridge; 80} 81EXPORT_SYMBOL(agp_backend_acquire); 82 83 84/** 85 * agp_backend_release - release the lock on the agp backend. | 66 * 67 */ 68struct agp_bridge_data *agp_backend_acquire(struct pci_dev *pdev) 69{ 70 struct agp_bridge_data *bridge; 71 72 bridge = agp_find_bridge(pdev); 73 --- 5 unchanged lines hidden (view full) --- 79 atomic_inc(&bridge->agp_in_use); 80 return bridge; 81} 82EXPORT_SYMBOL(agp_backend_acquire); 83 84 85/** 86 * agp_backend_release - release the lock on the agp backend. |
87 * @bridge: the AGP backend to release |
|
86 * 87 * The caller must insure that the graphics aperture translation table 88 * is read for use by another entity. 89 * 90 * (Ensure that all memory it bound is unbound.) 91 */ 92void agp_backend_release(struct agp_bridge_data *bridge) 93{ --- 273 unchanged lines hidden --- | 88 * 89 * The caller must insure that the graphics aperture translation table 90 * is read for use by another entity. 91 * 92 * (Ensure that all memory it bound is unbound.) 93 */ 94void agp_backend_release(struct agp_bridge_data *bridge) 95{ --- 273 unchanged lines hidden --- |