Next Previous Contents

8. Pros8hkes gia na exete PLIP kai LP mazi.

O kaluteros tropos gia na exete ta PLIP kai LP mazi einai me th xrhsh modules: mporeite na fortwsete to plip.o kai na to jefortwsete otan 8elete na typwsete kai antistrofa. Ean 8elete na xrhsimopoihsete ta PLIP kai LP taytoxrono, dokimaste tis parakatw pros8hkes.

8.1 PLIP kai LP mazi sthn idia 8ura.

Ean gia kapoio logo 8elete ta PLIP kai LP na yposthrizontai apey8eias apo ton pyrhna, mporeite na dokimasete tis parakatw pros8hkes.

Prepei na peirajete ton parakatw kwdika, alla krathste antigrafa twn arxeiwn poy 8a allajete:


******** 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 */

Fysika yparxei kai h synh8ismenh apokurhjh ey8ynwn: elaba tis parapanw pros8hkes kai tis paroysiazw "opws tis phra". Ayto shmainei oti tis dokimazete me dikhs sas ey8unh. Opws kai na exei, to mono problhma 8a einai h aplh epanafora twn arxeiwn kai h metaglwttish.

8.2 PLIP kai LP se diaforetikes 8ures.

Ean exete toylaxiston 2 parallhles 8ures mporeite na dokimasete aytes tis pros8hkes poy epitrepoyn thn xrhsh toy PLIP se mia 8ura kai toy LP se allh.

  1. Metatrecte se sxolio thn parakatw grammh sto arxeio 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. Diamorfwsh pyrhna.
    PLIP (parallel port) support (CONFIG_PLIP) [n] y
    
    Parallel Printer support [y] y
    
  3. Mynhmata pyrhna kata thn ekkinhsh.
    lp1 at 0x0378, using polling driver
    .....
    NET3 PLIP version 2.0 gniibe@mri.co.jp
    plip2: Parallel port at 0x278, using assigned IRQ 5.
    

3ana apokurhjh ey8ynwn opws sto tmhma 8.1.


Next Previous Contents