Skip to contentSkip to conversation

emu10k1x/AudigyLS period table

DISCUSSION [email protected] 2 participants 2 messages Jun 29, 2004

lore
Share & tools
lore
#0 lore raw

This the information that James Courtier-Dutton found about the AudigyLS that also works for the emu10k1x:

#define PLAYBACK_LIST_ADDR 0x00 /* Base DMA address of a list of pointers to each period/size */
/* One list entry: 4 bytes for DMA address,
* 4 bytes for period_size << 16.
* One list entry is 8 bytes long.
* One list entry for each period in the buffer. */
#define PLAYBACK_LIST_SIZE 0x01 /* Size of list in bytes << 16. E.g. 8 periods -> 0x00380000 */
#define PLAYBACK_LIST_PTR 0x02 /* Pointer to the current period being played */

Is this in anyway similar to the emu10k1 PTB scatter-gather? Just wondering if they reused the design.

Francisco

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com

#1 lore raw

At Mon, 28 Jun 2004 22:49:43 -0400,

Quoted 12 lines · [email protected] wrote:

This the information that James Courtier-Dutton found about the AudigyLS that also works for the emu10k1x:

#define PLAYBACK_LIST_ADDR 0x00 /* Base DMA address of a list of pointers to each period/size */
/* One list entry: 4 bytes for DMA address,
* 4 bytes for period_size << 16.
* One list entry is 8 bytes long.
* One list entry for each period in the buffer. */
#define PLAYBACK_LIST_SIZE 0x01 /* Size of list in bytes << 16. E.g. 8 periods -> 0x00380000 */
#define PLAYBACK_LIST_PTR 0x02 /* Pointer to the current period being played */

Quoted 1 line

Is this in anyway similar to the emu10k1 PTB scatter-gather? Just wondering if they reused the design.

No, it looks rather similar with the buffer descriptors used in via82xx or intel8x0 to me. You can take a look at via82xx code for supporting SG-buffer. It's a bit complicated because the period size isn't always aligned to the page size.

Takashi

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com