Main Page | Class List | File List | Class Members | File Members | Related Pages

src/drivers/dummy.c File Reference

Dummy device driver. More...

#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
#include <stdio.h>
#include <otto/otto.h>
#include <otto/packet.h>
#include <otto/device.h>
#include <otto/control.h>

Functions

const char _ID_[] __attribute__ ((unused))="$Id: dummy.c,v 1.2 2004/07/07 22:07:11 alpha Exp $"
otto_devicedummy_open (const char *fname)
int dummy_close (struct otto_device *dev)
int dummy_write (struct otto_device *dev, int bus, union otto_packet *pkt)
int dummy_read (struct otto_device *dev, int bus, union otto_packet *pkt)
int dummy_control (struct otto_device *dev, int bus, void *data, int cmd)
void __attribute ((constructor))

Variables

otto_driver dummy_drv


Detailed Description

Dummy device driver.

Todo:

Function Documentation

void __attribute (constructor)   )  [static]
 

const char _ID_ [] __attribute__ (unused)   )  [static]
 

int dummy_close struct otto_device dev  )  [static]
 

int dummy_control struct otto_device dev,
int  bus,
void *  data,
int  cmd
[static]
 

struct otto_device* dummy_open const char *  fname  ) 
 

int dummy_read struct otto_device dev,
int  bus,
union otto_packet pkt
[static]
 

int dummy_write struct otto_device dev,
int  bus,
union otto_packet pkt
[static]
 


Variable Documentation

struct otto_driver dummy_drv [static]
 

Initial value:

{ .name = "dummy", .desc = "Dummy device driver", .author = "Darius Rad <alpha@area49.net>", .license = "GPL", .open = dummy_open, .close = dummy_close, .write = dummy_write, .read = dummy_read, .control = dummy_control, }


Generated on Thu Jul 8 19:26:06 2004 for OpenOtto by doxygen 1.3.7