@@ -26,13 +26,6 @@ This standard is freely available from https://www.capi.org.
26262. Driver and Device Registration
2727=================================
2828
29- CAPI drivers optionally register themselves with Kernel CAPI by calling the
30- Kernel CAPI function register_capi_driver() with a pointer to a struct
31- capi_driver. This structure must be filled with the name and revision of the
32- driver, and optionally a pointer to a callback function, add_card(). The
33- registration can be revoked by calling the function unregister_capi_driver()
34- with a pointer to the same struct capi_driver.
35-
3629CAPI drivers must register each of the ISDN devices they control with Kernel
3730CAPI by calling the Kernel CAPI function attach_capi_ctr() with a pointer to a
3831struct capi_ctr before they can be used. This structure must be filled with
@@ -89,9 +82,6 @@ register_capi_driver():
8982 the name of the driver, as a zero-terminated ASCII string
9083``char revision[32] ``
9184 the revision number of the driver, as a zero-terminated ASCII string
92- ``int (*add_card)(struct capi_driver *driver, capicardparams *data) ``
93- a callback function pointer (may be NULL)
94-
9585
96864.2 struct capi_ctr
9787-------------------
@@ -178,12 +168,6 @@ to be set by the driver before calling attach_capi_ctr():
178168 pointer to a callback function returning the entry for the device in
179169 the CAPI controller info table, /proc/capi/controller
180170
181- ``const struct file_operations *proc_fops ``
182- pointers to callback functions for the device's proc file
183- system entry, /proc/capi/controllers/<n>; pointer to the device's
184- capi_ctr structure is available from struct proc_dir_entry::data
185- which is available from struct inode.
186-
187171Note:
188172 Callback functions except send_message() are never called in interrupt
189173 context.
@@ -267,25 +251,10 @@ _cmstruct alternative representation for CAPI parameters of type 'struct'
267251 _cmsg structure members.
268252=========== =================================================================
269253
270- Functions capi_cmsg2message() and capi_message2cmsg() are provided to convert
271- messages between their transport encoding described in the CAPI 2.0 standard
272- and their _cmsg structure representation. Note that capi_cmsg2message() does
273- not know or check the size of its destination buffer. The caller must make
274- sure it is big enough to accommodate the resulting CAPI message.
275-
276254
2772555. Lower Layer Interface Functions
278256==================================
279257
280- (declared in <linux/isdn/capilli.h>)
281-
282- ::
283-
284- void register_capi_driver(struct capi_driver *drvr)
285- void unregister_capi_driver(struct capi_driver *drvr)
286-
287- register/unregister a driver with Kernel CAPI
288-
289258::
290259
291260 int attach_capi_ctr(struct capi_ctr *ctrlr)
@@ -300,13 +269,6 @@ register/unregister a device (controller) with Kernel CAPI
300269
301270signal controller ready/not ready
302271
303- ::
304-
305- void capi_ctr_suspend_output(struct capi_ctr *ctrlr)
306- void capi_ctr_resume_output(struct capi_ctr *ctrlr)
307-
308- signal suspend/resume
309-
310272::
311273
312274 void capi_ctr_handle_message(struct capi_ctr * ctrlr, u16 applid,
@@ -319,21 +281,6 @@ for forwarding to the specified application
3192816. Helper Functions and Macros
320282==============================
321283
322- Library functions (from <linux/isdn/capilli.h>):
323-
324- ::
325-
326- void capilib_new_ncci(struct list_head *head, u16 applid,
327- u32 ncci, u32 winsize)
328- void capilib_free_ncci(struct list_head *head, u16 applid, u32 ncci)
329- void capilib_release_appl(struct list_head *head, u16 applid)
330- void capilib_release(struct list_head *head)
331- void capilib_data_b3_conf(struct list_head *head, u16 applid,
332- u32 ncci, u16 msgid)
333- u16 capilib_data_b3_req(struct list_head *head, u16 applid,
334- u32 ncci, u16 msgid)
335-
336-
337284Macros to extract/set element values from/in a CAPI message header
338285(from <linux/isdn/capiutil.h>):
339286
@@ -357,24 +304,6 @@ CAPIMSG_DATALEN(m) CAPIMSG_SETDATALEN(m, len) Data Length (u16)
357304Library functions for working with _cmsg structures
358305(from <linux/isdn/capiutil.h>):
359306
360- ``unsigned capi_cmsg2message(_cmsg *cmsg, u8 *msg) ``
361- Assembles a CAPI 2.0 message from the parameters in ``*cmsg ``,
362- storing the result in ``*msg ``.
363-
364- ``unsigned capi_message2cmsg(_cmsg *cmsg, u8 *msg) ``
365- Disassembles the CAPI 2.0 message in ``*msg ``, storing the parameters
366- in ``*cmsg ``.
367-
368- ``unsigned capi_cmsg_header(_cmsg *cmsg, u16 ApplId, u8 Command, u8 Subcommand, u16 Messagenumber, u32 Controller) ``
369- Fills the header part and address field of the _cmsg structure ``*cmsg ``
370- with the given values, zeroing the remainder of the structure so only
371- parameters with non-default values need to be changed before sending
372- the message.
373-
374- ``void capi_cmsg_answer(_cmsg *cmsg) ``
375- Sets the low bit of the Subcommand field in ``*cmsg ``, thereby
376- converting ``_REQ `` to ``_CONF `` and ``_IND `` to ``_RESP ``.
377-
378307``char *capi_cmd2str(u8 Command, u8 Subcommand) ``
379308 Returns the CAPI 2.0 message name corresponding to the given command
380309 and subcommand values, as a static ASCII string. The return value may
0 commit comments