/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 (c) 1999-2000 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _SYS_BBC_BEEP_H
#define _SYS_BBC_BEEP_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* bbc_beep.h : BBC beep driver's header file.
*/
/* Keyboard Beep Control Register values */
/*
* Keyboard Beep Counter Register value :
* The most significant of [18..10] selects the bit of
* the BBC free running counter (updated on half the system
* clock) that is used to generate the audio signal. So, bit[10]
* generates a signal at 1/(2^12) the system frequency, and
* bit[18], at 1/(2^20). So if s = system frequency(in MHz),
* it can generate frequencies in the range (s >> 10) Hz to
* (s >> 2) Hz.
*/
typedef volatile struct bbc_beep_regs {
/* Reserved */
/* Register to set the frequency */
/*
* Beep driver state structure
*/
typedef struct bbc_beep_state {
/* Dip of bbc_beep device */
/* Beep registers */
/* Register handle */
/* If beeper is active or not */
int bbc_beep_mode;
#ifdef __cplusplus
}
#endif
#endif /* _SYS_BBC_BEEP_H */