dio.c
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:1k
- /*
- * Copyright 2003 by Texas Instruments Incorporated.
- * All rights reserved. Property of Texas Instruments Incorporated.
- * Restricted rights to use, duplicate or disclose this code are
- * granted through contract.
- *
- */
- /* "@(#) DDK 1.10.00.23 07-02-03 (ddk-b12)" */
- /*
- * ======== dio.c ========
- *
- * DSP/BIOS SIO device driver (DEV) which interfaces to IOM mini-
- * drivers. See the DSP/BIOS Users Guide for more information on SIO
- *
- */
- #include <std.h>
- #include <dev.h>
- #include <sys.h>
- #include <dio.h>
- Int DIO_ctrl(DEV_Handle device, Uns cmd, Arg arg);
- Int DIO_issue(DEV_Handle device);
- /*
- * ======== DIO_ctrl ========
- * Simply call down to the mini-driver.
- */
- Int DIO_ctrl(DEV_Handle device, Uns cmd, Arg arg)
- {
- Int status;
- DIO_Handle dio = (DIO_Handle)device->object;
- status = dio->fxns->mdControlChan(dio->chanp, cmd, (Ptr)arg);
- if (status < 0 ) {
- return (SYS_EBADIO);
- }
- else {
- return (SYS_OK);
- }
- }
- /* ======== DIO_init ========
- *
- */
- Void DIO_init(Void)
- {
- /*
- * Module initialization
- */
- }