Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127168
b: refs/heads/master
c: b17a550
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter committed Jan 4, 2009
1 parent d4851ba commit dd968c8
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 15 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: adb0a61681224340271bb2c2e1a060434b76ec06
refs/heads/master: b17a55096071898454d7b5b6fb30cca7faedf9f1
8 changes: 4 additions & 4 deletions trunk/drivers/ieee1394/csr.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,22 @@ static struct hpsb_highlevel csr_highlevel = {
.host_reset = host_reset,
};

static struct hpsb_address_ops map_ops = {
const static struct hpsb_address_ops map_ops = {
.read = read_maps,
};

static struct hpsb_address_ops fcp_ops = {
const static struct hpsb_address_ops fcp_ops = {
.write = write_fcp,
};

static struct hpsb_address_ops reg_ops = {
const static struct hpsb_address_ops reg_ops = {
.read = read_regs,
.write = write_regs,
.lock = lock_regs,
.lock64 = lock64_regs,
};

static struct hpsb_address_ops config_rom_ops = {
const static struct hpsb_address_ops config_rom_ops = {
.read = read_config_rom,
};

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ieee1394/eth1394.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static void ether1394_remove_host(struct hpsb_host *host);
static void ether1394_host_reset(struct hpsb_host *host);

/* Function for incoming 1394 packets */
static struct hpsb_address_ops addr_ops = {
const static struct hpsb_address_ops addr_ops = {
.write = ether1394_write,
};

Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/ieee1394/highlevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ void hpsb_unregister_highlevel(struct hpsb_highlevel *hl)
*/
u64 hpsb_allocate_and_register_addrspace(struct hpsb_highlevel *hl,
struct hpsb_host *host,
struct hpsb_address_ops *ops,
const struct hpsb_address_ops *ops,
u64 size, u64 alignment,
u64 start, u64 end)
{
Expand Down Expand Up @@ -407,7 +407,8 @@ u64 hpsb_allocate_and_register_addrspace(struct hpsb_highlevel *hl,
* are automatically deallocated together with the hpsb_highlevel @hl.
*/
int hpsb_register_addrspace(struct hpsb_highlevel *hl, struct hpsb_host *host,
struct hpsb_address_ops *ops, u64 start, u64 end)
const struct hpsb_address_ops *ops,
u64 start, u64 end)
{
struct hpsb_address_serve *as;
struct list_head *lh;
Expand Down Expand Up @@ -477,7 +478,7 @@ int hpsb_unregister_addrspace(struct hpsb_highlevel *hl, struct hpsb_host *host,
return retval;
}

static struct hpsb_address_ops dummy_ops;
const static struct hpsb_address_ops dummy_ops;

/* dummy address spaces as lower and upper bounds of the host's a.s. list */
static void init_hpsb_highlevel(struct hpsb_host *host)
Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/ieee1394/highlevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct hpsb_host;
struct hpsb_address_serve {
struct list_head host_list; /* per host list */
struct list_head hl_list; /* hpsb_highlevel list */
struct hpsb_address_ops *op;
const struct hpsb_address_ops *op;
struct hpsb_host *host;
u64 start; /* first address handled, quadlet aligned */
u64 end; /* first address behind, quadlet aligned */
Expand Down Expand Up @@ -119,11 +119,12 @@ void hpsb_unregister_highlevel(struct hpsb_highlevel *hl);

u64 hpsb_allocate_and_register_addrspace(struct hpsb_highlevel *hl,
struct hpsb_host *host,
struct hpsb_address_ops *ops,
const struct hpsb_address_ops *ops,
u64 size, u64 alignment,
u64 start, u64 end);
int hpsb_register_addrspace(struct hpsb_highlevel *hl, struct hpsb_host *host,
struct hpsb_address_ops *ops, u64 start, u64 end);
const struct hpsb_address_ops *ops,
u64 start, u64 end);
int hpsb_unregister_addrspace(struct hpsb_highlevel *hl, struct hpsb_host *host,
u64 start);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ieee1394/raw1394.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static int arm_lock(struct hpsb_host *host, int nodeid, quadlet_t * store,
static int arm_lock64(struct hpsb_host *host, int nodeid, octlet_t * store,
u64 addr, octlet_t data, octlet_t arg, int ext_tcode,
u16 flags);
static struct hpsb_address_ops arm_ops = {
const static struct hpsb_address_ops arm_ops = {
.read = arm_read,
.write = arm_write,
.lock = arm_lock,
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/ieee1394/sbp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ static struct hpsb_highlevel sbp2_highlevel = {
.host_reset = sbp2_host_reset,
};

static struct hpsb_address_ops sbp2_ops = {
const static struct hpsb_address_ops sbp2_ops = {
.write = sbp2_handle_status_write
};

Expand All @@ -275,7 +275,7 @@ static int sbp2_handle_physdma_write(struct hpsb_host *, int, int, quadlet_t *,
static int sbp2_handle_physdma_read(struct hpsb_host *, int, quadlet_t *, u64,
size_t, u16);

static struct hpsb_address_ops sbp2_physdma_ops = {
const static struct hpsb_address_ops sbp2_physdma_ops = {
.read = sbp2_handle_physdma_read,
.write = sbp2_handle_physdma_write,
};
Expand Down

0 comments on commit dd968c8

Please sign in to comment.