diff options
author | Karsten Keil <keil@b1-systems.de> | 2009-04-22 22:24:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-27 08:37:39 -0400 |
commit | 2296e5a0136f7ba64c99f3a48a55a687aa9abcc8 (patch) | |
tree | e3eae50d49456ec8f269bbd0a4ed67a6d0d94978 /Documentation/isdn/INTERFACE.CAPI | |
parent | 554f200e22a13e19bd407d0037e41be0ec8a0a2e (diff) |
Add reference to CAPI 2.0 standard
Move the entry about CAPI 2.0 to the beginning and add a URL.
Incorporate changes suggested by Randy Dunlap, thanks for proofreading.
Signed-off-by: Karsten Keil <keil@b1-systems.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/isdn/INTERFACE.CAPI')
-rw-r--r-- | Documentation/isdn/INTERFACE.CAPI | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Documentation/isdn/INTERFACE.CAPI b/Documentation/isdn/INTERFACE.CAPI index 8947ffcda16e..786d619b36e5 100644 --- a/Documentation/isdn/INTERFACE.CAPI +++ b/Documentation/isdn/INTERFACE.CAPI | |||
@@ -3,6 +3,11 @@ Kernel CAPI Interface to Hardware Drivers | |||
3 | 3 | ||
4 | 1. Overview | 4 | 1. Overview |
5 | 5 | ||
6 | From the CAPI 2.0 specification: | ||
7 | COMMON-ISDN-API (CAPI) is an application programming interface standard used | ||
8 | to access ISDN equipment connected to basic rate interfaces (BRI) and primary | ||
9 | rate interfaces (PRI). | ||
10 | |||
6 | Kernel CAPI operates as a dispatching layer between CAPI applications and CAPI | 11 | Kernel CAPI operates as a dispatching layer between CAPI applications and CAPI |
7 | hardware drivers. Hardware drivers register ISDN devices (controllers, in CAPI | 12 | hardware drivers. Hardware drivers register ISDN devices (controllers, in CAPI |
8 | lingo) with Kernel CAPI to indicate their readiness to provide their service | 13 | lingo) with Kernel CAPI to indicate their readiness to provide their service |
@@ -12,6 +17,9 @@ application registration to an available device, forwarding it to the | |||
12 | corresponding hardware driver. Kernel CAPI then forwards CAPI messages in both | 17 | corresponding hardware driver. Kernel CAPI then forwards CAPI messages in both |
13 | directions between the application and the hardware driver. | 18 | directions between the application and the hardware driver. |
14 | 19 | ||
20 | Format and semantics of CAPI messages are specified in the CAPI 2.0 standard. | ||
21 | This standard is freely available from http://www.capi.org. | ||
22 | |||
15 | 23 | ||
16 | 2. Driver and Device Registration | 24 | 2. Driver and Device Registration |
17 | 25 | ||
@@ -53,12 +61,10 @@ open() operation on regular files or character devices. | |||
53 | After a successful return from register_appl(), CAPI messages from the | 61 | After a successful return from register_appl(), CAPI messages from the |
54 | application may be passed to the driver for the device via calls to the | 62 | application may be passed to the driver for the device via calls to the |
55 | send_message() callback function. The CAPI message to send is stored in the | 63 | send_message() callback function. The CAPI message to send is stored in the |
56 | data portion of a skb. Conversely, the driver may call Kernel CAPI's | 64 | data portion of an skb. Conversely, the driver may call Kernel CAPI's |
57 | capi_ctr_handle_message() function to pass a received CAPI message to Kernel | 65 | capi_ctr_handle_message() function to pass a received CAPI message to Kernel |
58 | CAPI for forwarding to an application, specifying its ApplID. | 66 | CAPI for forwarding to an application, specifying its ApplID. |
59 | 67 | ||
60 | Format and semantics of CAPI messages are specified in the CAPI 2.0 standard. | ||
61 | |||
62 | Deregistration requests (CAPI operation CAPI_RELEASE) from applications are | 68 | Deregistration requests (CAPI operation CAPI_RELEASE) from applications are |
63 | forwarded as calls to the release_appl() callback function, passing the same | 69 | forwarded as calls to the release_appl() callback function, passing the same |
64 | ApplID as with register_appl(). After return from release_appl(), no CAPI | 70 | ApplID as with register_appl(). After return from release_appl(), no CAPI |
@@ -75,9 +81,9 @@ the following non-private fields, all to be set by the driver before calling | |||
75 | register_capi_driver(): | 81 | register_capi_driver(): |
76 | 82 | ||
77 | char name[32] | 83 | char name[32] |
78 | the name of the driver, as a zero terminated ASCII string | 84 | the name of the driver, as a zero-terminated ASCII string |
79 | char revision[32] | 85 | char revision[32] |
80 | the revision number of the driver, as a zero terminated ASCII string | 86 | the revision number of the driver, as a zero-terminated ASCII string |
81 | int (*add_card)(struct capi_driver *driver, capicardparams *data) | 87 | int (*add_card)(struct capi_driver *driver, capicardparams *data) |
82 | a callback function pointer (may be NULL) | 88 | a callback function pointer (may be NULL) |
83 | 89 | ||
@@ -100,10 +106,10 @@ void *driverdata | |||
100 | an opaque pointer to driver specific data, not touched by Kernel CAPI | 106 | an opaque pointer to driver specific data, not touched by Kernel CAPI |
101 | 107 | ||
102 | char name[32] | 108 | char name[32] |
103 | the name of the controller, as a zero terminated ASCII string | 109 | the name of the controller, as a zero-terminated ASCII string |
104 | 110 | ||
105 | char *driver_name | 111 | char *driver_name |
106 | the name of the driver, as a zero terminated ASCII string | 112 | the name of the driver, as a zero-terminated ASCII string |
107 | 113 | ||
108 | int (*load_firmware)(struct capi_ctr *ctrlr, capiloaddata *ldata) | 114 | int (*load_firmware)(struct capi_ctr *ctrlr, capiloaddata *ldata) |
109 | (optional) pointer to a callback function for sending firmware and | 115 | (optional) pointer to a callback function for sending firmware and |