ef8846857fcf954444cdc77e72249afef48377d2rb/*
ef8846857fcf954444cdc77e72249afef48377d2rb * CDDL HEADER START
ef8846857fcf954444cdc77e72249afef48377d2rb *
ef8846857fcf954444cdc77e72249afef48377d2rb * The contents of this file are subject to the terms of the
ef8846857fcf954444cdc77e72249afef48377d2rb * Common Development and Distribution License (the "License").
ef8846857fcf954444cdc77e72249afef48377d2rb * You may not use this file except in compliance with the License.
ef8846857fcf954444cdc77e72249afef48377d2rb *
ef8846857fcf954444cdc77e72249afef48377d2rb * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ef8846857fcf954444cdc77e72249afef48377d2rb * or http://www.opensolaris.org/os/licensing.
ef8846857fcf954444cdc77e72249afef48377d2rb * See the License for the specific language governing permissions
ef8846857fcf954444cdc77e72249afef48377d2rb * and limitations under the License.
ef8846857fcf954444cdc77e72249afef48377d2rb *
ef8846857fcf954444cdc77e72249afef48377d2rb * When distributing Covered Code, include this CDDL HEADER in each
ef8846857fcf954444cdc77e72249afef48377d2rb * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ef8846857fcf954444cdc77e72249afef48377d2rb * If applicable, add the following below this CDDL HEADER, with the
ef8846857fcf954444cdc77e72249afef48377d2rb * fields enclosed by brackets "[]" replaced with your own identifying
ef8846857fcf954444cdc77e72249afef48377d2rb * information: Portions Copyright [yyyy] [name of copyright owner]
ef8846857fcf954444cdc77e72249afef48377d2rb *
ef8846857fcf954444cdc77e72249afef48377d2rb * CDDL HEADER END
ef8846857fcf954444cdc77e72249afef48377d2rb */
ef8846857fcf954444cdc77e72249afef48377d2rb/*
ef8846857fcf954444cdc77e72249afef48377d2rb * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
ef8846857fcf954444cdc77e72249afef48377d2rb * Use is subject to license terms.
ef8846857fcf954444cdc77e72249afef48377d2rb */
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#ifndef _PRI_H
ef8846857fcf954444cdc77e72249afef48377d2rb#define _PRI_H
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#pragma ident "%Z%%M% %I% %E% SMI"
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#include <stdlib.h>
ef8846857fcf954444cdc77e72249afef48377d2rb#include <sys/types.h>
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#ifdef __cplusplus
ef8846857fcf954444cdc77e72249afef48377d2rbextern "C" {
ef8846857fcf954444cdc77e72249afef48377d2rb#endif
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#define PRI_GET 0
ef8846857fcf954444cdc77e72249afef48377d2rb#define PRI_WAITGET 1
ef8846857fcf954444cdc77e72249afef48377d2rb#define DS_PRI_DRIVER "/devices/pseudo/ds_pri@0:ds_pri"
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rbextern int pri_init(void);
ef8846857fcf954444cdc77e72249afef48377d2rbextern void pri_fini(void);
ef8846857fcf954444cdc77e72249afef48377d2rbextern ssize_t pri_get(uint8_t wait, uint64_t *token, uint64_t **buf,
ef8846857fcf954444cdc77e72249afef48377d2rb void *(*allocp)(size_t), void (*freep)(void *, size_t));
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#ifdef __cplusplus
ef8846857fcf954444cdc77e72249afef48377d2rb}
ef8846857fcf954444cdc77e72249afef48377d2rb#endif
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#endif /* _PRI_H */