Changeset 61013bd in mainline
- Timestamp:
- 2011-09-24T17:03:27Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7d5057e
- Parents:
- 9dd79bc7
- Location:
- uspace/drv/audio/sb16
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/registers.h
r9dd79bc7 r61013bd 43 43 ioport8_t mixer_address; 44 44 ioport8_t mixer_data; 45 ioport16_t dsp_reset; 45 ioport8_t dsp_reset; 46 ioport8_t __reserved1; /* 0x7 */ 46 47 ioport8_t fm_address_status2; 47 48 ioport8_t fm_data2; 48 49 ioport8_t dsp_data_read; 50 ioport8_t __reserved2; /*0xb*/ 49 51 ioport8_t dsp_write; /* Both command and data, bit 7 is write status */ 50 52 #define DSP_WRITE_READY (1 << 7) 53 ioport8_t __reserved3; /*0xd*/ 51 54 ioport8_t dsp_read_status; /* Bit 7 */ 52 55 #define DSP_READ_READY (1 << 7) 53 ioport8_t reserved;56 ioport8_t __reserved4; /*0xf*/ 54 57 ioport8_t cd_command_data; 55 58 ioport8_t cd_status; -
uspace/drv/audio/sb16/sb16.c
r9dd79bc7 r61013bd 45 45 pio_write_8(&drv->regs->dsp_write, command); 46 46 } 47 47 /*----------------------------------------------------------------------------*/ 48 48 static inline uint8_t sb16_dsp_read(sb16_drv_t *drv) 49 49 { … … 55 55 return pio_read_8(&drv->regs->dsp_data_read); 56 56 } 57 58 57 /*----------------------------------------------------------------------------*/ 59 58 /* ISA interrupts should be edge-triggered so there should be no need for 60 59 * irq code magic */ … … 79 78 80 79 /* Reset DSP, see Chapter 2 of Sound Blaster HW programming guide */ 81 pio_write_ 16(&drv->regs->dsp_reset, 1);80 pio_write_8(&drv->regs->dsp_reset, 1); 82 81 udelay(3); 83 pio_write_ 16(&drv->regs->dsp_reset, 0);82 pio_write_8(&drv->regs->dsp_reset, 0); 84 83 udelay(100); 85 84
Note:
See TracChangeset
for help on using the changeset viewer.