[BACK]Return to skeleton_driver.c CVS log [TXT][DIR] Up to [local] / funnyos / other

File: [local] / funnyos / other / skeleton_driver.c (download)

Revision 1.2, Mon Nov 19 10:20:52 2007 UTC (16 years, 5 months ago) by nbrk
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines

missing name in declaration

/*
 * $Id: skeleton_driver.c,v 1.2 2007/11/19 10:20:52 nbrk Exp $
 */
#include <sys/types.h>
#include <sys/device.h>
#include <sys/bus.h>

#include <arch/XXX/dev/XXXreg.h>
#include <arch/XXX/dev/XXXvar.h>

/*
 * Skeleton driver.
 */

int 	XXX_attach(struct device *, uint32_t, uint8_t);

struct driver XXX_dr = {
	sizeof(struct XXX_dd),
	XXX_attach,
	NULL,
	NULL
};


int
XXX_attach(struct device *self, uint32_t loc, uint8_t flags)
{
	struct XXX_dd *ddp = self->dv_devdata;

	return(0);
}