Lines Matching +full:0 +full:x800

23 static __u8 mac_asc_wave_tab[ 0x800 ];
26 * Alan's original sine table; needs interpolating to 0x800
27 * (hint: interpolate or hardwire [0 -> Pi/2[, it's symmetric)
30 0, 39, 75, 103, 121, 127, 121, 103, 75, 39,
31 0, -39, -75, -103, -121, -127, -121, -103, -75, -39
37 static volatile __u8* mac_asc_regs = ( void* )0x50F14000;
44 static unsigned long mac_bell_phase; /* 0..2*Pi -> 0..0x800 (wavetable size) */
74 * mac_asc_regs[ 0x800 ] & 0xF0 != 0 in mac_init_asc()
84 mac_asc_regs = ( void* )0x50010000; in mac_init_asc()
147 for ( i = 0; i < 0x400; i++ ) in mac_init_asc()
150 mac_asc_wave_tab[ i + 0x400 ] = 0xFF - i / 4; in mac_init_asc()
185 if ( freq < 20 || freq > 20000 || length == 0 ) in mac_mksound()
187 mac_nosound( 0 ); in mac_mksound()
195 for ( i = 0; i < 0x800; i++ ) in mac_mksound()
196 mac_asc_regs[ i ] = 0; in mac_mksound()
197 for ( i = 0; i < 0x800; i++ ) in mac_mksound()
200 for ( i = 0; i < 8; i++ ) in mac_mksound()
201 *( __u32* )( ( __u32 )mac_asc_regs + ASC_CONTROL + 0x814 + 8 * i ) = cfreq; in mac_mksound()
203 mac_asc_regs[ 0x807 ] = 0; in mac_mksound()
205 mac_asc_regs[ 0x805 ] = 0; in mac_mksound()
206 mac_asc_regs[ 0x80F ] = 0; in mac_mksound()
221 mac_asc_regs[ ASC_ENABLE ] = 0; in mac_nosound()
232 if ( mac_bell_duration > 0 ) in mac_quadra_start_bell()
239 mac_bell_phase = 0; in mac_quadra_start_bell()
246 mac_asc_regs[ 0x806 ] = volume; in mac_quadra_start_bell()
249 if ( mac_asc_regs[ 0x801 ] != 1 ) in mac_quadra_start_bell()
252 mac_asc_regs[ 0x807 ] = 0; in mac_quadra_start_bell()
254 mac_asc_regs[ 0x802 ] = 0; in mac_quadra_start_bell()
256 mac_asc_regs[ 0x801 ] = 1; in mac_quadra_start_bell()
257 mac_asc_regs[ 0x803 ] |= 0x80; in mac_quadra_start_bell()
258 mac_asc_regs[ 0x803 ] &= 0x7F; in mac_quadra_start_bell()
289 if ( mac_bell_duration-- > 0 ) in mac_quadra_ring_bell()
291 for ( i = 0; i < count; i++ ) in mac_quadra_ring_bell()
294 mac_asc_regs[ 0 ] = mac_asc_wave_tab[ mac_bell_phase & ( sizeof( mac_asc_wave_tab ) - 1 ) ]; in mac_quadra_ring_bell()
300 mac_asc_regs[ 0x801 ] = 0; in mac_quadra_ring_bell()