uwbai.h revision ff0e937b36dcde1a47ff7b00aa76a491c0dc07a8
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_UWB_UWBAI_H
#define _SYS_UWB_UWBAI_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* This header file includes interfaces for UWB radio controller drivers.
*/
/*
* A uwb device handle is returned by uwb_device_attach() on success. The
* handle is opaque to the client uwba driver. The implimentation structure is
* uwba_dev
*/
typedef struct uwb_dev_handle *uwb_dev_handle_t;
/*
* UWBA function return values
*/
#define UWB_SUCCESS 0 /* call success */
#define UWB_PARSE_ERROR -18
/* Max wait time for each uwb cmd */
/*
* Radio controller driver registion
*/
void uwb_dev_detach(uwb_dev_handle_t);
/* UWB COMMON INTERFACES */
int uwb_reset_dev(dev_info_t *);
int uwb_init_phy(dev_info_t *);
int uwb_stop_beacon(dev_info_t *);
int uwb_dev_disconnect(dev_info_t *);
int uwb_dev_reconnect(dev_info_t *);
int uwb_dev_online(dev_info_t *);
int uwb_dev_offline(dev_info_t *);
#ifdef __cplusplus
}
#endif
#endif /* _SYS_UWB_UWBAI_H */