[media] DocBook: add dvb_ca_en50221.h to documentation

There are already some tags at dvb_ca_en50221.h, but using a
different format. Convert them, fix a few entries and add
to the device-drivers DocBook.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: Jonathan Corbet <corbet@lwn.net>
This commit is contained in:
Mauro Carvalho Chehab 2015-08-22 07:09:29 -03:00
parent 1d8955b2c3
commit fbefb1a87c
3 changed files with 102 additions and 101 deletions

View File

@ -227,6 +227,7 @@ X!Isound/sound_firmware.c
!Iinclude/media/v4l2-of.h !Iinclude/media/v4l2-of.h
!Iinclude/media/v4l2-subdev.h !Iinclude/media/v4l2-subdev.h
!Iinclude/media/rc-core.h !Iinclude/media/rc-core.h
!Idrivers/media/dvb-core/dvb_ca_en50221.h
<!-- FIXME: Removed for now due to document generation inconsistency <!-- FIXME: Removed for now due to document generation inconsistency
X!Iinclude/media/v4l2-ctrls.h X!Iinclude/media/v4l2-ctrls.h
X!Iinclude/media/v4l2-dv-timings.h X!Iinclude/media/v4l2-dv-timings.h
@ -240,7 +241,6 @@ X!Idrivers/media/dvb-core/dvb_frontend.h
X!Idrivers/media/dvb-core/dvbdev.h X!Idrivers/media/dvb-core/dvbdev.h
X!Edrivers/media/dvb-core/dvb_net.c X!Edrivers/media/dvb-core/dvb_net.c
X!Idrivers/media/dvb-core/dvb_ringbuffer.h X!Idrivers/media/dvb-core/dvb_ringbuffer.h
X!Idrivers/media/dvb-core/dvb_ca_en50221.h
X!Idrivers/media/dvb-core/dvb_math.h X!Idrivers/media/dvb-core/dvb_math.h
--> -->

View File

@ -169,10 +169,10 @@ static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, u8 * e
/** /**
* Safely find needle in haystack. * Safely find needle in haystack.
* *
* @param haystack Buffer to look in. * @haystack: Buffer to look in.
* @param hlen Number of bytes in haystack. * @hlen: Number of bytes in haystack.
* @param needle Buffer to find. * @needle: Buffer to find.
* @param nlen Number of bytes in needle. * @nlen: Number of bytes in needle.
* @return Pointer into haystack needle was found at, or NULL if not found. * @return Pointer into haystack needle was found at, or NULL if not found.
*/ */
static char *findstr(char * haystack, int hlen, char * needle, int nlen) static char *findstr(char * haystack, int hlen, char * needle, int nlen)
@ -197,7 +197,7 @@ static char *findstr(char * haystack, int hlen, char * needle, int nlen)
/** /**
* Check CAM status. * dvb_ca_en50221_check_camstatus - Check CAM status.
*/ */
static int dvb_ca_en50221_check_camstatus(struct dvb_ca_private *ca, int slot) static int dvb_ca_en50221_check_camstatus(struct dvb_ca_private *ca, int slot)
{ {
@ -240,13 +240,13 @@ static int dvb_ca_en50221_check_camstatus(struct dvb_ca_private *ca, int slot)
/** /**
* Wait for flags to become set on the STATUS register on a CAM interface, * dvb_ca_en50221_wait_if_status - Wait for flags to become set on the STATUS
* checking for errors and timeout. * register on a CAM interface, checking for errors and timeout.
* *
* @param ca CA instance. * @ca: CA instance.
* @param slot Slot on interface. * @slot: Slot on interface.
* @param waitfor Flags to wait for. * @waitfor: Flags to wait for.
* @param timeout_ms Timeout in milliseconds. * @timeout_ms: Timeout in milliseconds.
* *
* @return 0 on success, nonzero on error. * @return 0 on success, nonzero on error.
*/ */
@ -290,10 +290,10 @@ static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot,
/** /**
* Initialise the link layer connection to a CAM. * dvb_ca_en50221_link_init - Initialise the link layer connection to a CAM.
* *
* @param ca CA instance. * @ca: CA instance.
* @param slot Slot id. * @slot: Slot id.
* *
* @return 0 on success, nonzero on failure. * @return 0 on success, nonzero on failure.
*/ */
@ -346,14 +346,14 @@ static int dvb_ca_en50221_link_init(struct dvb_ca_private *ca, int slot)
} }
/** /**
* Read a tuple from attribute memory. * dvb_ca_en50221_read_tuple - Read a tuple from attribute memory.
* *
* @param ca CA instance. * @ca: CA instance.
* @param slot Slot id. * @slot: Slot id.
* @param address Address to read from. Updated. * @address: Address to read from. Updated.
* @param tupleType Tuple id byte. Updated. * @tupleType: Tuple id byte. Updated.
* @param tupleLength Tuple length. Updated. * @tupleLength: Tuple length. Updated.
* @param tuple Dest buffer for tuple (must be 256 bytes). Updated. * @tuple: Dest buffer for tuple (must be 256 bytes). Updated.
* *
* @return 0 on success, nonzero on error. * @return 0 on success, nonzero on error.
*/ */
@ -399,11 +399,11 @@ static int dvb_ca_en50221_read_tuple(struct dvb_ca_private *ca, int slot,
/** /**
* Parse attribute memory of a CAM module, extracting Config register, and checking * dvb_ca_en50221_parse_attributes - Parse attribute memory of a CAM module,
* it is a DVB CAM module. * extracting Config register, and checking it is a DVB CAM module.
* *
* @param ca CA instance. * @ca: CA instance.
* @param slot Slot id. * @slot: Slot id.
* *
* @return 0 on success, <0 on failure. * @return 0 on success, <0 on failure.
*/ */
@ -546,10 +546,10 @@ static int dvb_ca_en50221_parse_attributes(struct dvb_ca_private *ca, int slot)
/** /**
* Set CAM's configoption correctly. * dvb_ca_en50221_set_configoption - Set CAM's configoption correctly.
* *
* @param ca CA instance. * @ca: CA instance.
* @param slot Slot containing the CAM. * @slot: Slot containing the CAM.
*/ */
static int dvb_ca_en50221_set_configoption(struct dvb_ca_private *ca, int slot) static int dvb_ca_en50221_set_configoption(struct dvb_ca_private *ca, int slot)
{ {
@ -574,15 +574,16 @@ static int dvb_ca_en50221_set_configoption(struct dvb_ca_private *ca, int slot)
/** /**
* This function talks to an EN50221 CAM control interface. It reads a buffer of * dvb_ca_en50221_read_data - This function talks to an EN50221 CAM control
* data from the CAM. The data can either be stored in a supplied buffer, or * interface. It reads a buffer of data from the CAM. The data can either
* automatically be added to the slot's rx_buffer. * be stored in a supplied buffer, or automatically be added to the slot's
* rx_buffer.
* *
* @param ca CA instance. * @ca: CA instance.
* @param slot Slot to read from. * @slot: Slot to read from.
* @param ebuf If non-NULL, the data will be written to this buffer. If NULL, * @ebuf: If non-NULL, the data will be written to this buffer. If NULL,
* the data will be added into the buffering system as a normal fragment. * the data will be added into the buffering system as a normal fragment.
* @param ecount Size of ebuf. Ignored if ebuf is NULL. * @ecount: Size of ebuf. Ignored if ebuf is NULL.
* *
* @return Number of bytes read, or < 0 on error * @return Number of bytes read, or < 0 on error
*/ */
@ -698,14 +699,14 @@ exit:
/** /**
* This function talks to an EN50221 CAM control interface. It writes a buffer of data * dvb_ca_en50221_write_data - This function talks to an EN50221 CAM control
* to a CAM. * interface. It writes a buffer of data to a CAM.
* *
* @param ca CA instance. * @ca: CA instance.
* @param slot Slot to write to. * @slot: Slot to write to.
* @param ebuf The data in this buffer is treated as a complete link-level packet to * @ebuf: The data in this buffer is treated as a complete link-level packet to
* be written. * be written.
* @param count Size of ebuf. * @count: Size of ebuf.
* *
* @return Number of bytes written, or < 0 on error. * @return Number of bytes written, or < 0 on error.
*/ */
@ -790,10 +791,10 @@ EXPORT_SYMBOL(dvb_ca_en50221_camchange_irq);
/** /**
* A CAM has been removed => shut it down. * dvb_ca_en50221_camready_irq - A CAM has been removed => shut it down.
* *
* @param ca CA instance. * @ca: CA instance.
* @param slot Slot to shut down. * @slot: Slot to shut down.
*/ */
static int dvb_ca_en50221_slot_shutdown(struct dvb_ca_private *ca, int slot) static int dvb_ca_en50221_slot_shutdown(struct dvb_ca_private *ca, int slot)
{ {
@ -815,11 +816,11 @@ EXPORT_SYMBOL(dvb_ca_en50221_camready_irq);
/** /**
* A CAMCHANGE IRQ has occurred. * dvb_ca_en50221_camready_irq - A CAMCHANGE IRQ has occurred.
* *
* @param ca CA instance. * @ca: CA instance.
* @param slot Slot concerned. * @slot: Slot concerned.
* @param change_type One of the DVB_CA_CAMCHANGE_* values. * @change_type: One of the DVB_CA_CAMCHANGE_* values.
*/ */
void dvb_ca_en50221_camchange_irq(struct dvb_ca_en50221 *pubca, int slot, int change_type) void dvb_ca_en50221_camchange_irq(struct dvb_ca_en50221 *pubca, int slot, int change_type)
{ {
@ -844,10 +845,10 @@ EXPORT_SYMBOL(dvb_ca_en50221_frda_irq);
/** /**
* A CAMREADY IRQ has occurred. * dvb_ca_en50221_camready_irq - A CAMREADY IRQ has occurred.
* *
* @param ca CA instance. * @ca: CA instance.
* @param slot Slot concerned. * @slot: Slot concerned.
*/ */
void dvb_ca_en50221_camready_irq(struct dvb_ca_en50221 *pubca, int slot) void dvb_ca_en50221_camready_irq(struct dvb_ca_en50221 *pubca, int slot)
{ {
@ -865,8 +866,8 @@ void dvb_ca_en50221_camready_irq(struct dvb_ca_en50221 *pubca, int slot)
/** /**
* An FR or DA IRQ has occurred. * An FR or DA IRQ has occurred.
* *
* @param ca CA instance. * @ca: CA instance.
* @param slot Slot concerned. * @slot: Slot concerned.
*/ */
void dvb_ca_en50221_frda_irq(struct dvb_ca_en50221 *pubca, int slot) void dvb_ca_en50221_frda_irq(struct dvb_ca_en50221 *pubca, int slot)
{ {
@ -899,7 +900,7 @@ void dvb_ca_en50221_frda_irq(struct dvb_ca_en50221 *pubca, int slot)
/** /**
* Wake up the DVB CA thread * Wake up the DVB CA thread
* *
* @param ca CA instance. * @ca: CA instance.
*/ */
static void dvb_ca_en50221_thread_wakeup(struct dvb_ca_private *ca) static void dvb_ca_en50221_thread_wakeup(struct dvb_ca_private *ca)
{ {
@ -914,7 +915,7 @@ static void dvb_ca_en50221_thread_wakeup(struct dvb_ca_private *ca)
/** /**
* Update the delay used by the thread. * Update the delay used by the thread.
* *
* @param ca CA instance. * @ca: CA instance.
*/ */
static void dvb_ca_en50221_thread_update_delay(struct dvb_ca_private *ca) static void dvb_ca_en50221_thread_update_delay(struct dvb_ca_private *ca)
{ {
@ -1177,10 +1178,10 @@ static int dvb_ca_en50221_thread(void *data)
* Real ioctl implementation. * Real ioctl implementation.
* NOTE: CA_SEND_MSG/CA_GET_MSG ioctls have userspace buffers passed to them. * NOTE: CA_SEND_MSG/CA_GET_MSG ioctls have userspace buffers passed to them.
* *
* @param inode Inode concerned. * @inode: Inode concerned.
* @param file File concerned. * @file: File concerned.
* @param cmd IOCTL command. * @cmd: IOCTL command.
* @param arg Associated argument. * @arg: Associated argument.
* *
* @return 0 on success, <0 on error. * @return 0 on success, <0 on error.
*/ */
@ -1258,10 +1259,10 @@ out_unlock:
/** /**
* Wrapper for ioctl implementation. * Wrapper for ioctl implementation.
* *
* @param inode Inode concerned. * @inode: Inode concerned.
* @param file File concerned. * @file: File concerned.
* @param cmd IOCTL command. * @cmd: IOCTL command.
* @param arg Associated argument. * @arg: Associated argument.
* *
* @return 0 on success, <0 on error. * @return 0 on success, <0 on error.
*/ */
@ -1275,10 +1276,10 @@ static long dvb_ca_en50221_io_ioctl(struct file *file,
/** /**
* Implementation of write() syscall. * Implementation of write() syscall.
* *
* @param file File structure. * @file: File structure.
* @param buf Source buffer. * @buf: Source buffer.
* @param count Size of source buffer. * @count: Size of source buffer.
* @param ppos Position in file (ignored). * @ppos: Position in file (ignored).
* *
* @return Number of bytes read, or <0 on error. * @return Number of bytes read, or <0 on error.
*/ */
@ -1416,10 +1417,10 @@ nextslot:
/** /**
* Implementation of read() syscall. * Implementation of read() syscall.
* *
* @param file File structure. * @file: File structure.
* @param buf Destination buffer. * @buf: Destination buffer.
* @param count Size of destination buffer. * @count: Size of destination buffer.
* @param ppos Position in file (ignored). * @ppos: Position in file (ignored).
* *
* @return Number of bytes read, or <0 on error. * @return Number of bytes read, or <0 on error.
*/ */
@ -1519,8 +1520,8 @@ exit:
/** /**
* Implementation of file open syscall. * Implementation of file open syscall.
* *
* @param inode Inode concerned. * @inode: Inode concerned.
* @param file File concerned. * @file: File concerned.
* *
* @return 0 on success, <0 on failure. * @return 0 on success, <0 on failure.
*/ */
@ -1564,8 +1565,8 @@ static int dvb_ca_en50221_io_open(struct inode *inode, struct file *file)
/** /**
* Implementation of file close syscall. * Implementation of file close syscall.
* *
* @param inode Inode concerned. * @inode: Inode concerned.
* @param file File concerned. * @file: File concerned.
* *
* @return 0 on success, <0 on failure. * @return 0 on success, <0 on failure.
*/ */
@ -1592,8 +1593,8 @@ static int dvb_ca_en50221_io_release(struct inode *inode, struct file *file)
/** /**
* Implementation of poll() syscall. * Implementation of poll() syscall.
* *
* @param file File concerned. * @file: File concerned.
* @param wait poll wait table. * @wait: poll wait table.
* *
* @return Standard poll mask. * @return Standard poll mask.
*/ */
@ -1656,10 +1657,10 @@ static const struct dvb_device dvbdev_ca = {
/** /**
* Initialise a new DVB CA EN50221 interface device. * Initialise a new DVB CA EN50221 interface device.
* *
* @param dvb_adapter DVB adapter to attach the new CA device to. * @dvb_adapter: DVB adapter to attach the new CA device to.
* @param ca The dvb_ca instance. * @ca: The dvb_ca instance.
* @param flags Flags describing the CA device (DVB_CA_FLAG_*). * @flags: Flags describing the CA device (DVB_CA_FLAG_*).
* @param slot_count Number of slots supported. * @slot_count: Number of slots supported.
* *
* @return 0 on success, nonzero on failure * @return 0 on success, nonzero on failure
*/ */
@ -1743,8 +1744,8 @@ EXPORT_SYMBOL(dvb_ca_en50221_release);
/** /**
* Release a DVB CA EN50221 interface device. * Release a DVB CA EN50221 interface device.
* *
* @param ca_dev The dvb_device_t instance for the CA device. * @ca_dev: The dvb_device_t instance for the CA device.
* @param ca The associated dvb_ca instance. * @ca: The associated dvb_ca instance.
*/ */
void dvb_ca_en50221_release(struct dvb_ca_en50221 *pubca) void dvb_ca_en50221_release(struct dvb_ca_en50221 *pubca)
{ {

View File

@ -83,27 +83,27 @@ struct dvb_ca_en50221 {
/* Functions for reporting IRQ events */ /* Functions for reporting IRQ events */
/** /**
* A CAMCHANGE IRQ has occurred. * dvb_ca_en50221_camchange_irq - A CAMCHANGE IRQ has occurred.
* *
* @param ca CA instance. * @pubca: CA instance.
* @param slot Slot concerned. * @slot: Slot concerned.
* @param change_type One of the DVB_CA_CAMCHANGE_* values * @change_type: One of the DVB_CA_CAMCHANGE_* values
*/ */
void dvb_ca_en50221_camchange_irq(struct dvb_ca_en50221* pubca, int slot, int change_type); void dvb_ca_en50221_camchange_irq(struct dvb_ca_en50221* pubca, int slot, int change_type);
/** /**
* A CAMREADY IRQ has occurred. * dvb_ca_en50221_camready_irq - A CAMREADY IRQ has occurred.
* *
* @param ca CA instance. * @pubca: CA instance.
* @param slot Slot concerned. * @slot: Slot concerned.
*/ */
void dvb_ca_en50221_camready_irq(struct dvb_ca_en50221* pubca, int slot); void dvb_ca_en50221_camready_irq(struct dvb_ca_en50221* pubca, int slot);
/** /**
* An FR or a DA IRQ has occurred. * dvb_ca_en50221_frda_irq - An FR or a DA IRQ has occurred.
* *
* @param ca CA instance. * @ca: CA instance.
* @param slot Slot concerned. * @slot: Slot concerned.
*/ */
void dvb_ca_en50221_frda_irq(struct dvb_ca_en50221* ca, int slot); void dvb_ca_en50221_frda_irq(struct dvb_ca_en50221* ca, int slot);
@ -113,21 +113,21 @@ void dvb_ca_en50221_frda_irq(struct dvb_ca_en50221* ca, int slot);
/* Initialisation/shutdown functions */ /* Initialisation/shutdown functions */
/** /**
* Initialise a new DVB CA device. * dvb_ca_en50221_init - Initialise a new DVB CA device.
* *
* @param dvb_adapter DVB adapter to attach the new CA device to. * @dvb_adapter: DVB adapter to attach the new CA device to.
* @param ca The dvb_ca instance. * @ca: The dvb_ca instance.
* @param flags Flags describing the CA device (DVB_CA_EN50221_FLAG_*). * @flags: Flags describing the CA device (DVB_CA_EN50221_FLAG_*).
* @param slot_count Number of slots supported. * @slot_count: Number of slots supported.
* *
* @return 0 on success, nonzero on failure * @return 0 on success, nonzero on failure
*/ */
extern int dvb_ca_en50221_init(struct dvb_adapter *dvb_adapter, struct dvb_ca_en50221* ca, int flags, int slot_count); extern int dvb_ca_en50221_init(struct dvb_adapter *dvb_adapter, struct dvb_ca_en50221* ca, int flags, int slot_count);
/** /**
* Release a DVB CA device. * dvb_ca_en50221_release - Release a DVB CA device.
* *
* @param ca The associated dvb_ca instance. * @ca: The associated dvb_ca instance.
*/ */
extern void dvb_ca_en50221_release(struct dvb_ca_en50221* ca); extern void dvb_ca_en50221_release(struct dvb_ca_en50221* ca);