DSP56K
Section: Ư¼ö ÆÄÀÏ
(4)
Updated: 2000³â 3¿ù 1ÀÏ
Index
Return to Main Contents
À̸§
dsp56k - DSP56001 ÀÎÅÍÆäÀ̽º ÀåÄ¡
»ç¿ë¹ý
#include <asm/dsp56k.h>
ssize_t read (int fd, void * data, size_t length);
ssize_t write (int fd, void * data, size_t length);
int ioctl (int fd, DSP56K_UPLOAD, struct dsp56k_upload *program);
int ioctl (int fd, DSP56K_SET_TX_WSIZE, int wsize);
int ioctl (int fd, DSP56K_SET_RX_WSIZE, int wsize);
int ioctl (int fd, DSP56K_HOST_FLAGS, struct dsp56k_host_flags *flags);
int ioctl (int fd, DSP56K_HOST_CMD, int cmd);
CONFIGURATION
dsp56k µð¹ÙÀ̽º´Â ¹®ÀÚ µð¹ÙÀ̽º·Î¼ ¸ÞÀÌÀú ³Ñ¹ö(major number) 55, ¸¶ÀÌ³Ê ³Ñ¹ö(minor number) 0À» Áö´Ñ´Ù.
¼³¸í
¸ðÅä·Ñ¶ó DSP6001Àº Atari Falcon030 ȣȯ ÄÄÇ»Å͵é·Î ¸ðµÎ ÇÁ·Î±×·¥ °¡´ÉÇÑ 24ºñÆ® µðÁöÅÐ ½Ã±×³Î ÇÁ·Î¼¼¼ÀÌ´Ù.
dsp56k Ư¼ö ÆÄÀÏÀº DSP56001À» Á¦¾îÇϴµ¥ »ç¿ëµÇ°í, µÎ°³ÀÇ ¹æÇâÀÇ Çڵ彦ÀÌÅ©µÈ È£½ºÆ® Æ÷Æ®¸¦ »ç¿ëÇÏ¿© µ¥ÀÌÅ͸¦
¼Û¼ö½ÅÇÑ´Ù.
µ¥ÀÌÅÍ ½ºÆ®¸²À» ½Ã½º³Î ÇÁ·Î¼¼¼¿¡ º¸³»·Á¸ç, ÀåÄ¡¿¡ write()¸¦ »ç¿ëÇÏ°í, ó¸®µÈ µ¥ÀÌÅ͸¦ ¼ö½ÅÇϴµ¥ read()¸¦
»ç¿ëÇÑ´Ù. µ¥ÀÌÅʹ ȣ½ºÆ® Ãø¸é¿¡¼ 8, 16, 24, ¶Ç´Â 32 ºñÆ®ÀÇ ¾ç¿¡¼ º¸³»Áö°Å³ª ¼ö½ÅµÉ ¼ö ÀÖ´Ù. ÇÏÁö¸¸, DSP56001¿¡¼´Â
24 ºñÆ®ÀÇ ¾çÀ¸·Î Ç×»ó º¸¿©Áø´Ù.
´ÙÀ½ÀÇ
ioctl(2)
È£ÃâÀº dsp56k µð¹ÙÀ̽º¸¦ Á¦¾îÇϴµ¥ »ç¿ëµÈ´Ù.
- DSP56K_UPLOAD
-
´Â DSP56001À» Àç¼³Á¤ÇÏ°í, ÇÁ·Î±×·¥À» ¾÷·ÎµåÇÑ´Ù.
¼¼¹ø° ioctl() Àμö´Â a struct dsp56k_binary¿¡ ´ëÇÑ Æ÷ÀÎÅÍ°¡ µÇ¾î¾ß Çϸç, bin´Â DSP56001 ¹ÙÀ̳ʸ® ÇÁ·Î±×·¥
ÀÇ Æ÷ÀÎÅÍ°¡, len´Â ÇÁ·Î±×·¥ÀÇ ±æÀ̷μ ¼³Á¤µÇ°í, 24 ºñÆ®ÀÇ ´Ü¾îµé·Î ¼¼¾îÁø´Ù.
- DSP56K_SET_TX_WSIZE´Â
-
ÀÌ´Â DSP56001·Î Çѹø¿¡ Àü¼ÛµÈ ¹ÙÀÌÆ®ÀÇ ¼ýÀÚÀÌ´Ù. ÀÌ·¯ÇÑ µ¥ÀÌÅÍ ¾çÀº 0¹ÙÀÌÆ®·Î Æеù(padding)µÇ°Å³ª, ³×ÀÌƼºê 24ºñÆ®
µ¥ÀÌÅÍ Æ÷¸ËÀ» ¸ÂÃßµµ·Ï »ý·«µÉ °ÍÀÌ´Ù.
- DSP56K_SET_RX_WSIZE
-
´Â ¼ö½Å ´Ü¾î Å©±â¸¦ ¼³Á¤ÇÑ´Ù. Çã¿ëµÈ °ªµéÀº 1¿¡¼ 4±îÁöÀÇ ¹üÀ§¸¦ Áö´Ï°í,
ÀÌ´Â DSP56001·Î Çѹø¿¡ Àü¼ÛµÈ ¹ÙÀÌÆ®ÀÇ ¼ýÀÚÀÌ´Ù. ÀÌ·¯ÇÑ µ¥ÀÌÅÍ ¾çÀº 0¹ÙÀÌÆ®·Î Æеù(padding)µÇ°Å³ª,
DSP56001ÀÇ ³×ÀÌƼºê 24ºñÆ® µ¥ÀÌÅÍ Æ÷¸ËÀ» ¸ÂÃßµµ·Ï »ý·«µÉ °ÍÀÌ´Ù.
- DSP56K_HOST_FLAGS
-
´Â È£½ºÆ® Ç÷¡±×¸¦ ÀÐ°í ¾²±âÇÑ´Ù. È£½ºÆ® Ç÷¡±×´Â ³×°³ÀÇ ÀÏ¹Ý ¸ñÀû ºñÆ®·Î¼ È£½ºÆ® ÄÄÇ»ÅÍ¿Í DSP56001¿¡
ÀÇÇØ ÀÐÇôÁú ¼ö ÀÖ´Ù. ºñÆ® 0°ú 1Àº È£½ºÆ®¿¡ ÀÇÇØ ÀÛ¼ºµÉ ¼ö ÀÖÀ¸¸ç, ºñÆ® 2¿Í 3Àº DSP56001¿¡ ÀÇÇØ ÀÛ¼ºµÉ
¼ö ÀÖ´Ù.
È£½ºÆ® Ç÷¡±×¿¡ ¾×¼¼½ºÇÏ·Á¸é, ¼¼¹ø° ioctl() Àμö´Â struct dsp56k_host_flagsÀÇ
Æ÷ÀÎÅÍ°¡ µÇ¾î¾ß ÇÑ´Ù. ¸¸ÀÏ ºñÆ® 0 ȤÀº 1ÀÌ dir ¸â¹ö³»¿¡ ¼³Á¤µÈ´Ù¸é, out¿¡¼
»óÀÀÇÏ´Â ºñÆ®°¡ È£½ºÆ® Ç÷¡±×·Î ÀÛ¼ºµÉ °ÍÀÌ´Ù. ¸ðµç È£½ºÆ® Ç÷¡±×ÀÇ »óÅ´ statusÀÇ
³·Àº ³×°³ÀÇ ºñÆ®·Î ¸®Å쵃 °ÍÀÌ´Ù.
- DSP56K_HOST_CMD
-
´Â È£½ºÆ® ¸í·ÉÀ» Àü¼ÛÇÑ´Ù. Çã¿ëµÈ °ªÀº 0¿¡¼ 31±îÁö ¹üÀ§¸¦ Áö´Ï¸ç, DSP56001¿¡¼ ½ÇÇàµÇ´Â
ÇÁ·Î±×·¥¿¡ ÀÇÇØ Ã³¸®µÇ´Â »ç¿ëÀÚ Á¤ÀÇ ¸í·ÉÀÌ´Ù.
ÆÄÀÏ
/dev/dsp56k
ÀúÀÚ
Fredrik Noring <noring@nocrew.org>, lars brinkhoff <lars@nocrew.org>,
Tomas Berndtsson <tomas@nocrew.org>.
°ü·Ã Ç׸ñ
linux/include/asm-m68k/dsp56k.h,
linux/drivers/char/dsp56k.c,
http://dsp56k.nocrew.org/,
DSP56000/DSP56001 µðÁöÅÐ ½Ã±×³Î ÇÁ·Î¼¼¼ »ç¿ëÀÚ ¸Å´º¾ó
Index
- À̸§
-
- »ç¿ë¹ý
-
- CONFIGURATION
-
- ¼³¸í
-
- ÆÄÀÏ
-
- ÀúÀÚ
-
- °ü·Ã Ç׸ñ
-
This document was created by
man2html,
using the manual pages.
Time: 08:07:01 GMT, March 25, 2004