aboutsummaryrefslogtreecommitdiff
path: root/linux-core/xgi_pcie.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-06-29 21:38:48 -0700
committerIan Romanick <idr@us.ibm.com>2007-06-29 21:38:48 -0700
commit49ccec1b0845ea14ab2cfd2f53704fe26e38fbef (patch)
tree9cb297e2046773061d55f211086f7d6d71b035d8 /linux-core/xgi_pcie.c
parent32584d94e6ef7c0b463794a40541eb8183c7fb02 (diff)
Convert xgi_mem_location enum values to less generic names.
Diffstat (limited to 'linux-core/xgi_pcie.c')
-rw-r--r--linux-core/xgi_pcie.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux-core/xgi_pcie.c b/linux-core/xgi_pcie.c
index e451ebd5..82111249 100644
--- a/linux-core/xgi_pcie.c
+++ b/linux-core/xgi_pcie.c
@@ -775,7 +775,7 @@ void xgi_pcie_alloc(struct xgi_info * info, unsigned long size,
xgi_up(info->pcie_sem);
if (block == NULL) {
- alloc->location = INVALID;
+ alloc->location = XGI_MEMLOC_INVALID;
alloc->size = 0;
alloc->bus_addr = 0;
alloc->hw_addr = 0;
@@ -784,7 +784,7 @@ void xgi_pcie_alloc(struct xgi_info * info, unsigned long size,
XGI_INFO
("PCIE RAM allocation succeeded: offset = 0x%lx, bus_addr = 0x%lx\n",
block->offset, block->bus_addr);
- alloc->location = NON_LOCAL;
+ alloc->location = XGI_MEMLOC_NON_LOCAL;
alloc->size = block->size;
alloc->bus_addr = block->bus_addr;
alloc->hw_addr = block->hw_addr;
@@ -799,7 +799,7 @@ void xgi_pcie_alloc(struct xgi_info * info, unsigned long size,
kmalloc(sizeof(struct xgi_mem_pid), GFP_KERNEL);
if (!mempid_block)
XGI_ERROR("mempid_block alloc failed\n");
- mempid_block->location = NON_LOCAL;
+ mempid_block->location = XGI_MEMLOC_NON_LOCAL;
if (owner == PCIE_3D)
mempid_block->bus_addr = 0xFFFFFFFF; /*xgi_pcie_vertex_block has the address */
else
@@ -832,7 +832,7 @@ void xgi_pcie_free(struct xgi_info * info, unsigned long bus_addr)
processcnt = 0;
list_for_each_entry(mempid_block, &xgi_mempid_list, list) {
- if (mempid_block->location == NON_LOCAL
+ if (mempid_block->location == XGI_MEMLOC_NON_LOCAL
&& mempid_block->bus_addr == 0xFFFFFFFF) {
++processcnt;
}
@@ -855,7 +855,7 @@ void xgi_pcie_free(struct xgi_info * info, unsigned long bus_addr)
/* manage mempid */
list_for_each_entry(mempid_block, &xgi_mempid_list, list) {
- if (mempid_block->location == NON_LOCAL
+ if (mempid_block->location == XGI_MEMLOC_NON_LOCAL
&& ((isvertex && mempid_block->bus_addr == 0xFFFFFFFF)
|| (!isvertex && mempid_block->bus_addr == bus_addr))) {
mempid_freeblock = mempid_block;