´ÙÀ½ ÀÌÀü Â÷·Ê

8. PLIP¿Í LP¸¦ ÇÔ²²¾²±âÀ§ÇÑ ÆÐÄ¡µé

PLIP¿Í LP¸¦ ÇÔ²² »ç¿ëÇÏ´Â °¡Àå ÁÁÀº ¹æ¹ýÀº Ä¿³Î ¸ðµâÀ» »ç¿ëÇÏ´Â °ÍÀÌ´Ù.: ´ç½ÅÀº plip.o¸¦ ·ÎµåÇÑÈÄ ÇÁ¸°Åͳª ÀÌ¿ÜÀÇ ÀÏÀ» ÇÒ ¶§¿¡ ·ÎµåÇÏÁö ¾ÊÀ» ¼ö ÀÖ´Ù. ´ç½ÅÀÌ ÁøÁ¤À¸·Î PLIP¿Í LP¸¦ ÇÔ²² »ç¿ëÇÏ·Á°í ÇÑ´Ù¸é ´ÙÀ½ÀÇ ÆÐÄ¡µéÀ» µû¸£½Ê½Ã¿À.

8.1 °°Àº Æ÷Æ®¿¡ PLIP¿Í LP »ç¿ëÇϱâ

¾î¶² ÀÌÀ¯·Î ´ç½ÅÀÌ PLIP¿Í LP¸¦ Ä¿³Î¿¡ÀÇÇؼ­ ÇÔ²² »ç¿ëÇÏ·Á°í ÇÑ´Ù¸é, ÀÌ ÆÐÄ¡µéÀ» »ç¿ëÇϱ⠹ٶõ´Ù.

´ç½ÅÀº ¾Æ·¡ÀÇ Äڵ带 ¼öÁ¤ÇÏ¿©¾ßÇϸç, ±×Àü¿¡ ÀÌÀü ÆÄÀϵéÀ» ¹Ýµå½Ã ¹é¾÷Çϱ⠹ٶõ´Ù:


******** modifications to linux/drivers/char/lp.c ***********************
struct lp_struct lp_table[] = {
        { 0x3bc, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL,
NULL, },
/*      { 0x378, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL,
NULL, },
        { 0x278, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL,
NULL, },
*/
};
#define LP_NO 1

******** modifications to linux/drivers/net/Space.c ********************
#if defined(PLIP) || defined(CONFIG_PLIP)
    extern int plip_init(struct device *);
    static struct device plip2_dev = {
        "plip2", 0, 0, 0, 0, 0x278, 2, 0, 0, 0, NEXT_DEV, plip_init, };
    static struct device plip1_dev = {
        "plip1", 0, 0, 0, 0, 0x378, 7, 0, 0, 0, &plip2_dev, plip_init, };
/*    static struct device plip0_dev = {
        "plip0", 0, 0, 0, 0, 0x3BC, 5, 0, 0, 0, &plip1_dev, plip_init, };
*/
#   undef NEXT_DEV
#   define NEXT_DEV     (&plip1_dev)
#endif  /* PLIP */

¹°·Ð, ÀÌ°ÍÀº Ç¥ÁØÀûÀÎ ¹æ¹ýÀÌ ¾Æ´Ï´Ù: ³ª´Â ÀÌ ÆÐÄ¡µéÀ» ¹Þ°í ³»°¡ Çß´ø µ¥·Î ½è´Ù. ÀÌ°ÍÀº ´ç½Å ½º½º·Î Çغ¸¾Æ¾ßÇÔÀ» ÀǹÌÇÑ´Ù. ¾Æ¹«Æ°, ´ç½ÅÀÇ °¡Àå Å« ¹®Á¦´Â ¿ø ÆÄÀÏÀ» º¹¿øÇÏ°í Àç ÄÄÆÄÀÏ ÇÏ¿©¾ß ÇÑ´Ù´Â °ÍÀÌ´Ù.

8.2 ´Ù¸¥ Æ÷Æ®¿¡ PLIP¿Í LP »ç¿ëÇϱâ

ÀÌ ÆÐÄ¡¸¦ È°¿ëÇϱâ À§Çؼ­´Â Àû¾îµµ 2°³ÀÇ º´·ÄÆ÷Æ®¸¦ °¡Áö°í ÇÑÂÊ¿¡´Â PLIP¸¦ ´Ù¸¥ ÆíÀº LP¸¦ »ç¿ëÇؾßÇÑ´Ù.

  1. drivers/char/lp.c¿¡¼­ ´Ù¸§ ¼Ò½ºÀÇ ¶óÀÎÀ» ÁÖ¼® ó¸®Ç϶ó.
    struct lp_struct lp_table[] = {
    { 0x3bc, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, },
    { 0x378, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, },
    /* { 0x278, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, }, */
    }; 
        3 -> 2
    

  2. Ä¿³Î ¼³Á¤
    PLIP (parallel port) support (CONFIG_PLIP) [n] y
    
    Parallel Printer support [y] y
    
  3. ºÎÆÃÇÒ¶§ÀÇ Ä¿³ÎÀÇ ¸Þ½ÃÁö
    lp1 at 0x0378, using polling driver
    .....
    NET3 PLIP version 2.0 gniibe@mri.co.jp
    plip2: Parallel port at 0x278, using assigned IRQ 5.
    

´Ù½Ã ³»¿ëÀº 8.1°ú °°´Ù.


´ÙÀ½ ÀÌÀü Â÷·Ê