diff options
author | Ian Romanick <idr@us.ibm.com> | 2007-07-09 15:59:09 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2007-07-09 15:59:09 -0700 |
commit | 2f2d8b9688743ac6367bf13c3c023310a257ceb7 (patch) | |
tree | eb129f17d3efbe7a642e8a9a80c5408ad9c117b6 /linux-core/xgi_cmdlist.c | |
parent | 86e75b7f7f64643c6ef2c0fef353b38753df8239 (diff) |
Merge xgi_mem_req and xgi_mem_alloc into a single type.
These two structures were used as the request and reply for certain
ioctls. Having a different type for an ioctl's input and output is
just wierd. In addition, each structure contained fields (e.g., pid)
that had no business being there.
This change requires updates to user-space.
Diffstat (limited to 'linux-core/xgi_cmdlist.c')
-rw-r--r-- | linux-core/xgi_cmdlist.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linux-core/xgi_cmdlist.c b/linux-core/xgi_cmdlist.c index 04ee6e82..f7730d89 100644 --- a/linux-core/xgi_cmdlist.c +++ b/linux-core/xgi_cmdlist.c @@ -42,12 +42,12 @@ static void xgi_cmdlist_reset(void); int xgi_cmdlist_initialize(struct xgi_info * info, size_t size) { - //struct xgi_mem_req mem_req; - struct xgi_mem_alloc mem_alloc; + struct xgi_mem_alloc mem_alloc = { + .size = size, + .owner = PCIE_2D, + }; - //mem_req.size = size; - - xgi_pcie_alloc(info, size, PCIE_2D, &mem_alloc); + xgi_pcie_alloc(info, &mem_alloc, 0); if ((mem_alloc.size == 0) && (mem_alloc.hw_addr == 0)) { return -1; |