X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Documentation%2Fpnp.txt;h=28037aa1846c89bbf8082007b5e10e470000ac94;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=0a321e722c1c972890e92ef7152a51d399d5ff69;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/Documentation/pnp.txt b/Documentation/pnp.txt index 0a321e722..28037aa18 100644 --- a/Documentation/pnp.txt +++ b/Documentation/pnp.txt @@ -83,7 +83,6 @@ irq 6 dma 2 also there are a series of kernel parameters: -allowdma0 pnp_reserve_irq=irq1[,irq2] .... pnp_reserve_dma=dma1[,dma2] .... pnp_reserve_io=io1,size1[,io2,size2] .... @@ -116,6 +115,9 @@ pnp_unregister_protocol pnp_register_driver - adds a PnP driver to the Plug and Play Layer - this includes driver model integration +- returns zero for success or a negative error number for failure; count + calls to the .add() method if you need to know how many devices bind to + the driver pnp_unregister_driver - removes a PnP driver from the Plug and Play Layer @@ -182,7 +184,7 @@ static const struct pnp_id pnp_dev_table[] = { Please note that the character 'X' can be used as a wild card in the function portion (last four characters). ex: - /* Unkown PnP modems */ + /* Unknown PnP modems */ { "PNPCXXX", UNKNOWN_DEV }, Supported PnP card IDs can optionally be defined. @@ -220,7 +222,7 @@ static struct pnp_driver serial_pnp_driver = { .remove = serial_pnp_remove, }; -* name and id_table can not be NULL. +* name and id_table cannot be NULL. 4.) register the driver ex: