diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:33:53 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:16 -0400 |
commit | 25eb846189d20db4114cebf14fee96d69bef4667 (patch) | |
tree | bca11a6cc777f4ee121b1c04aa9e86075ae04a3e /drivers/pnp/base.h | |
parent | 772defc6292bae8b6db298476d1dabd22a99492b (diff) |
PNP: add pnp_eisa_id_to_string()
Converting the EISA ID to a string is messy and error-prone, and
we might as well use the same code for ISAPNP and PNPBIOS.
PNPACPI uses the conversion done by the ACPI core with
acpi_ex_eisa_id_to_string().
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-By: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/base.h')
-rw-r--r-- | drivers/pnp/base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h index ba55b0623f7e..9af0a6c7dd41 100644 --- a/drivers/pnp/base.h +++ b/drivers/pnp/base.h | |||
@@ -1,5 +1,7 @@ | |||
1 | extern spinlock_t pnp_lock; | 1 | extern spinlock_t pnp_lock; |
2 | void *pnp_alloc(long size); | 2 | void *pnp_alloc(long size); |
3 | #define PNP_EISA_ID_MASK 0x7fffffff | ||
4 | void pnp_eisa_id_to_string(u32 id, char *str); | ||
3 | struct pnp_id *pnp_add_id(struct pnp_dev *dev, char *id); | 5 | struct pnp_id *pnp_add_id(struct pnp_dev *dev, char *id); |
4 | int pnp_interface_attach_device(struct pnp_dev *dev); | 6 | int pnp_interface_attach_device(struct pnp_dev *dev); |
5 | void pnp_fixup_device(struct pnp_dev *dev); | 7 | void pnp_fixup_device(struct pnp_dev *dev); |