Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162375
b: refs/heads/master
c: 904290c
h: refs/heads/master
i:
  162373: e4672a5
  162371: f64317d
  162367: 987cbd5
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent a313a83 commit 0e9ee67
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 141 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 577092ac155005ecb3a1385d628ef27fc9b52b72
refs/heads/master: 904290c0b7b48e757b3dc9451f4b014f42c25098
42 changes: 21 additions & 21 deletions trunk/drivers/staging/sep/sep_dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,41 +30,41 @@

struct sep_device {
/* pointer to pci dev */
struct pci_dev *sep_pci_dev_ptr;
struct pci_dev *pdev;

unsigned long io_memory_start_physical_address;
unsigned long io_memory_end_physical_address;
unsigned long io_bus;
unsigned long io_end_bus;
unsigned long io_memory_size;
void *io_memory_start_virtual_address;
void __iomem *io_addr;

/* restricted access region */
unsigned long rar_physical_address;
void *rar_virtual_address;
unsigned long rar_bus;
void *rar_addr;

/* shared memory region */
unsigned long shared_physical_address;
void *shared_virtual_address;
unsigned long shared_bus;
void *shared_addr;

/* firmware regions */
unsigned long cache_physical_address;
unsigned long cache_bus;
unsigned long cache_size;
void *cache_virtual_address;
void *cache_addr;

unsigned long resident_physical_address;
unsigned long resident_bus;
unsigned long resident_size;
void *resident_virtual_address;
void *resident_addr;

/* device interrupt (as retrieved from PCI) */
int sep_irq;

unsigned long rar_region_addr;

/* start address of the access to the SEP registers from driver */
void __iomem *reg_base_address;
void __iomem *reg_addr;
/* transaction counter that coordinates the transactions between SEP and HOST */
unsigned long host_to_sep_send_counter;
unsigned long send_ct;
/* counter for the messages from sep */
unsigned long sep_to_host_reply_counter;
unsigned long reply_ct;
/* counter for the number of bytes allocated in the pool for the current
transaction */
unsigned long data_pool_bytes_allocated;
Expand All @@ -84,15 +84,15 @@ struct sep_device {
unsigned long out_num_pages;

/* global data for every flow */
struct sep_flow_context_t flows_data_array[SEP_DRIVER_NUM_FLOWS];
struct sep_flow_context_t flows[SEP_DRIVER_NUM_FLOWS];

/* pointer to the workqueue that handles the flow done interrupts */
struct workqueue_struct *flow_wq_ptr;
struct workqueue_struct *flow_wq;

/* address of the shared memory allocated during init for SEP driver */
unsigned long shared_area_addr;
unsigned long shared_area;
/* the physical address of the shared area */
unsigned long phys_shared_area_addr;
unsigned long shared_area_bus;

/* Message Shared Area start address - will be allocated during init */
unsigned long message_shared_area_addr;
Expand All @@ -102,13 +102,13 @@ static struct sep_device *sep_dev;

static inline void sep_write_reg(struct sep_device *dev, int reg, u32 value)
{
void __iomem *addr = dev->reg_base_address + reg;
void __iomem *addr = dev->reg_addr + reg;
writel(value, addr);
}

static inline u32 sep_read_reg(struct sep_device *dev, int reg)
{
void __iomem *addr = dev->reg_base_address + reg;
void __iomem *addr = dev->reg_addr + reg;
return readl(addr);
}

Expand Down
Loading

0 comments on commit 0e9ee67

Please sign in to comment.