Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102037
b: refs/heads/master
c: 9fdee4e
h: refs/heads/master
i:
  102035: af24bd8
v: v3
  • Loading branch information
Bjorn Helgaas authored and Andi Kleen committed Jul 16, 2008
1 parent 96ca0f5 commit 8566cb2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 940e98dbc616f1df7b63b73858a966969baf261d
refs/heads/master: 9fdee4e02e3b214cde8e4f3beb6776075a3d08a7
1 change: 1 addition & 0 deletions trunk/drivers/pnp/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ int pnp_check_mem(struct pnp_dev *dev, struct resource *res);
int pnp_check_irq(struct pnp_dev *dev, struct resource *res);
int pnp_check_dma(struct pnp_dev *dev, struct resource *res);

char *pnp_resource_type_name(struct resource *res);
void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc);

void pnp_init_resource(struct resource *res);
Expand Down
15 changes: 15 additions & 0 deletions trunk/drivers/pnp/support.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,21 @@ void pnp_eisa_id_to_string(u32 id, char *str)
str[7] = '\0';
}

char *pnp_resource_type_name(struct resource *res)
{
switch (pnp_resource_type(res)) {
case IORESOURCE_IO:
return "io";
case IORESOURCE_MEM:
return "mem";
case IORESOURCE_IRQ:
return "irq";
case IORESOURCE_DMA:
return "dma";
}
return NULL;
}

void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc)
{
#ifdef DEBUG
Expand Down

0 comments on commit 8566cb2

Please sign in to comment.