/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	u_mape_dev.h,v $
 * Revision 1.1.2.2  92/02/26  15:53:02  Charles_Briggs
 * 	UBC merge.
 * 	[92/02/22  15:10:41  Charles_Briggs]
 * 
 * $EndLog$
 */
/*
 * @(#)$RCSfile: u_mape_dev.h,v $ $Revision: 1.1.2.2 $ (DEC) $Date: 92/02/26 15:53:02 $
 */
#ifndef	__U_MAPE_DEV__
#define	__U_MAPE_DEV__ 1


/*
 * mmap object for character device.
 */

struct u_dev_object {
	struct vm_object ud_object;		/* Object common part */
	int ud_flags;				/* Flags */
	struct vnode *ud_vp;			/* Vnode backing this dev */
	dev_t ud_dev;				/* Device we're mapped to */
	int (*ud_mapfunc)();			/* Device map function */
	vm_offset_t ud_offset;			/* Offset passed to map */
};

/*
 * What's of value in the object structure
 */

#define ud_size	 ud_object.ob_size
#define	ud_refcnt ud_object.ob_ref_count

#define	UDF_NOWIRING	0x1			/* Wiring not supported */

#endif	/* !__U_MAPE_DEV__ */
