/usr/share/doc/HOWTO/ja-html/VME-HOWTO-4.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>VME Howto: ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤Ë¤è¤ë Tundra Universe PCI-VME ¥Ö¥ê¥Ã¥¸¤È¤ÎÂÐÏäλÅÊý</TITLE>
<LINK HREF="VME-HOWTO-5.html" REL=next>
<LINK HREF="VME-HOWTO-3.html" REL=previous>
<LINK HREF="VME-HOWTO.html#toc4" REL=contents>
</HEAD>
<BODY>
<A HREF="VME-HOWTO-5.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="VME-HOWTO-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="VME-HOWTO.html#toc4">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s4">4. ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤Ë¤è¤ë Tundra Universe PCI-VME ¥Ö¥ê¥Ã¥¸¤È¤ÎÂÐÏäλÅÊý</A></H2>
<H2><A NAME="ss4.1">4.1 VMELinux ¤È¶¦¤ËÍѤ¤¤é¤ì¤ë¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð</A>
</H2>
<P>
<UL>
<LI> /dev/vme_ioctl</LI>
<LI> /dev/vme_m0</LI>
<LI> /dev/vme_m1</LI>
<LI> /dev/vme_m2</LI>
<LI> /dev/vme_m3</LI>
<LI> /dev/vme_s0</LI>
<LI> /dev/vme_s1</LI>
<LI> /dev/vme_s2</LI>
<LI> /dev/vme_s3</LI>
</UL>
<H2><A NAME="ss4.2">4.2 VMEMaster ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð</A>
</H2>
<P>/dev/vme_m* ¤ÏÄ̾¥Ð¥¹¡¦¥Þ¥¹¥¿¤È¤·¤ÆVMEbus ¤Ë¥¢¥¯¥»¥¹¤¹¤ë
¥É¥é¥¤¥Ð¤Ç¤¹¡£
<P>Universe ¥Á¥Ã¥×¤Ï¡¢VMEbus ¤Ø¤Î 4 ¤Ä¤Î VMEMaster ¥¦¥¤¥ó¥É¥¦¤ò¥×¥í¥°¥é
¥Þ¤ØÄ󶡤·¤Þ¤¹¡£¤³¤ì¤é¤Î¥¦¥¤¥ó¥É¥¦¤Ï image ¤È¸Æ¤Ð¤ì¤Þ¤¹¡£¤³¤ì¤é¤Î
¥¦¥¤¥ó¥É¥¦Æâ¤Î¥ì¥¸¥¹¥¿¤Î¾ÜºÙ¤Ï¤³¤Î HOWTO ¤ÎÈϰϤòĶ¤¨¤Þ¤¹¡£¾ÜºÙ¤Ë
¤Ä¤¤¤Æ¤Ï Universe ¤Î¥É¥¥å¥á¥ó¥È¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
<A HREF="http://www.tundra.com/Tundra/unidex.html">Tundra Universe</A><H2><A NAME="ss4.3">4.3 VMESlave ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð</A>
</H2>
<P>/dev/vme_s* ¤ÏÄ̾Ê̤ΠVMEbus ¥Þ¥¹¥¿¤¬¤³¤Î¥Ç¥Ð¥¤¥¹¤Ë¥¢¥¯¥»¥¹¤¹¤ë
¤³¤È¤òµö²Ä¤¹¤ë¥É¥é¥¤¥Ð¤Ç¤¹¡£
<P>Universe ¥Á¥Ã¥×¤Ï¡¢VMEbus ¤Ø¤Î 4 ¤Ä¤Î VMESlave ¥¦¥¤¥ó¥É¥¦¤ò¥×¥í¥°¥é
¥Þ¤ØÄ󶡤·¤Þ¤¹¡£¤³¤ì¤é¤Î¥¦¥¤¥ó¥É¥¦¤Ï image ¤È¸Æ¤Ð¤ì¤Þ¤¹¡£¤³¤ì¤é¤Î
¥¦¥¤¥ó¥É¥¦Æâ¤Î¥ì¥¸¥¹¥¿¤Î¾ÜºÙ¤Ï¤³¤Î HOWTO ¤ÎÈϰϤò±Û¤¨¤Þ¤¹¡£¾ÜºÙ¤Ë
¤Ä¤¤¤Æ¤Ï Universe ¤Î¥É¥¥å¥á¥ó¥È¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
<A HREF="http://www.tundra.com/Tundra/unidex.html">Tundra Universe</A><P>¥¹¥ì¡¼¥Ö VME ¥â¡¼¥É¤Ï¡¢VMELinux ¤Ç¤Ï¤Þ¤À¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¡£
<H2><A NAME="ss4.4">4.4 Universe ¤Î¥ì¥¸¥¹¥¿¤ÎľÀÜÀ©¸æ</A>
</H2>
<P>/dev/vme_ioctl ¤ò»È¤¦¤È Universe ¤Î¥ì¥¸¥¹¥¿¤òÆɤ߽ñ¤¤Ç¤¤Þ¤¹¡£
<P>·Ð¸³Ë¤«¤Ê¥æ¡¼¥¶¤Ç¤¢¤ì¤Ð¡¢¤³¤Î¥Ç¥Ð¥¤¥¹¤ò»È¤Ã¤Æ Universe ¥Á¥Ã¥×¤ÎÆâÉô¤Î
¥ì¥¸¥¹¥¿¤ØľÀÜ¥¢¥¯¥»¥¹¤Ç¤¤Þ¤¹¡£¤³¤ì¤é¤Î¥ì¥¸¥¹¥¿¤ÎÀâÌÀ¤È¤½¤ÎÆ°ºî¤Ï
¤³¤Î HOWTO ¤ÎÈϰϤòĶ¤¨¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
°Ê²¼¤«¤éÆþ¼ê²Äǽ¤Ê Universe ¤Î¥É¥¥å¥á¥ó¥È¤òÄ´¤Ù¤Æ¤¯¤À¤µ¤¤¡£
<A HREF="http://www.tundra.com/Tundra/unidex.html">Tundra Universe</A><H2><A NAME="ss4.5">4.5 read()</A>
</H2>
<P>n = read(vme_handle,buf,len);
<P>°ú¿ô¤Î°ÕÌ£¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹ -
<UL>
<LI>
vme_handle : open() ¤«¤é¤ÎÌá¤êÃÍ</LI>
<LI>
buf : ¥Ç¡¼¥¿¡¦¥Ö¥í¥Ã¥¯¤Ø¤Î¥Ý¥¤¥ó¥¿</LI>
<LI>
len : VMEbus ¤«¤éÆɤ߹þ¤à¥Ð¥¤¥È¿ô</LI>
</UL>
<H2><A NAME="ss4.6">4.6 write()</A>
</H2>
<P>write(vme_handle,buf,len);
<P>°ú¿ô¤Î°ÕÌ£¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹ -
<UL>
<LI>vme_handle : open() ¤«¤é¤ÎÌá¤êÃÍ</LI>
<LI>
buf : ¥Ç¡¼¥¿¡¦¥Ö¥í¥Ã¥¯¤Ø¤Î¥Ý¥¤¥ó¥¿</LI>
<LI>
len : VMEbus ¤Ø½ñ¤¹þ¤à¥Ð¥¤¥È¿ô</LI>
</UL>
<H2><A NAME="ss4.7">4.7 lseek()</A>
</H2>
<P>lseek(vme_handle,vme_pnt,Seek_Type);
<P>°ú¿ô¤Î°ÕÌ£¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹ -
<UL>
<LI>
vme_handle : open() ¤«¤é¤ÎÌá¤êÃÍ</LI>
<LI>
vme_pnt : ¥¢¥¯¥»¥¹¤·¤¿¤¤¼ÂºÝ¤Î VME ¾å¤Î¥¢¥É¥ì¥¹</LI>
<LI>
Seek_Type : SEEK_SET ¤Þ¤¿¤Ï SEEK_CUR</LI>
</UL>
<H2><A NAME="ss4.8">4.8 ioctl()</A>
</H2>
<P>ioctl(vme_handle, command, argument);
<P>°ú¿ô¤Î°ÕÌ£¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹ -
<UL>
<LI>vme_handle : open() ¤«¤é¤ÎÌá¤êÃÍ</LI>
<LI>
command : IOCTL_SET_CTL, IOCTL_SET_MODE, IOCTL_SET_BS, IOCTL_SET_BD, IOCTL_SET_TO</LI>
<LI>
argument : °ú¿ô</LI>
</UL>
¤Þ¤¿ -
<UL>
<LI>
IOCTL_SET_CTL : ¥¤¥á¡¼¥¸ CTL ¥ì¥¸¥¹¥¿¤Ø°ú¿ô¤ò¥»¥Ã¥È¤¹¤ë¡£°ú¿ô¤Ï 32 ¥Ó¥Ã¥È¤Ç
¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£</LI>
<LI>
IOCTL_SET_MODE : "MODE_DMA" ¤Þ¤¿¤Ï "MODE_PROGRAMMED" - Universe ¥Á¥Ã¥×¤¬ PCI bus
¤ÈÄÌ¿®¤¹¤ë¤¿¤á¤Î¥â¡¼¥É¤òÀßÄꤹ¤ë¡£(VME ¥Ö¥í¥Ã¥¯¡¦¥â¡¼¥É¤Ç¤Ï¤Ê¤¤)</LI>
<LI>
IOCTL_SET_BS : ¥¤¥á¡¼¥¸ BS ¥ì¥¸¥¹¥¿¤Ø°ú¿ô¤ò¥»¥Ã¥È¤¹¤ë¡£Ãí - ¤³¤Î´Ø¿ô¤Î¥³¡¼¥ë¤Î
Á°¤Ë BD ¥ì¥¸¥¹¥¿¤ò¥»¥Ã¥È¤·¤Æ¤ª¤«¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£</LI>
<LI>
IOCTL_SET_BD : ¥¤¥á¡¼¥¸ BD ¥ì¥¸¥¹¥¿¤Ø°ú¿ô¤ò¥»¥Ã¥È¤¹¤ë¡£</LI>
<LI>
IOCTL_SET_TO : ¥¤¥á¡¼¥¸ TO ¥ì¥¸¥¹¥¿¤Ø°ú¿ô¤ò¥»¥Ã¥È¤¹¤ë¡£</LI>
</UL>
<H2><A NAME="ss4.9">4.9 open() ¤È close()</A>
</H2>
<P>4 ¤Ä¤Î VMELinux ¥Þ¥¹¥¿¤¢¤ë¤¤¤Ï¥¹¥ì¡¼¥Ö¡¦¥Ç¥Ð¥¤¥¹¤È¥³¥ó¥È¥í¡¼¥ë¡¦¥Ç¥Ð¥¤¥¹¤ò
¥ª¡¼¥×¥ó/¥¯¥í¡¼¥º¤·¤Þ¤¹¡£¥¹¥ì¡¼¥Ö¥¤¥á¡¼¥¸¤Ï¤Þ¤À¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£
<UL>
<LI> vme_handle = open("/dev/vme_m0",O_RDWR,0);</LI>
<LI> uni_handle = open("/dev/vme_ctl",O_RDWR,0);</LI>
</UL>
<P>
<UL>
<LI> close(vme_handle);</LI>
<LI> close(uni_handle);</LI>
</UL>
<HR>
<A HREF="VME-HOWTO-5.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="VME-HOWTO-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="VME-HOWTO.html#toc4">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|