Lines Matching defs:port
359 /* output one byte on given port */
361 static void Outb (int port, int value);
364 /* output 'size' bytes stored in 'source' on given port */
366 static void Outsb (int port, unsigned char *source, int size);
369 /* output 'size' 32 bits words stored in 'source' on given port */
371 static void Outsw (int port, unsigned char *source, int size);
375 /* input one byte from given port */
377 static int Inb (int port);
380 /* input 'size' bytes from given port and store them in 'dest' */
382 static void Insb (int port, unsigned char *dest, int size);
385 /* input 'size' 32 bits word from given port and store them in 'dest' */
387 static void Insw (int port, unsigned char *dest, int size);
543 * gain direct access to IO port, and set parport to the 'right' mode
549 sanei_umax_pp_initPort (int port, const char *name)
591 DBG (1, "sanei_umax_pp_InitPort(0x%X,%s)\n", port, name);
602 /* init global var holding port value */
603 gPort = port;
635 /* claim port */
638 DBG (1, "umax_pp: cannot claim port '%s'\n", name);
647 "umax_pp: ppdev couldn't gave modes for port '%s'\n",
672 "port 0x%X does not have EPP or ECP, giving up ...\n",
673 port);
735 "port 0x%X can't be set to EPP or ECP, giving up ...\n",
736 port);
790 /* the ppi device let user access to parallel port on freebsd */
823 if (port < 0x400)
825 if (sanei_ioperm (port, 8, 1) != 0)
827 DBG (1, "sanei_ioperm() could not gain access to 0x%X\n", port);
830 DBG (1, "sanei_ioperm(0x%X, 8, 1) OK ...\n", port);
865 Outb (int port, int value)
880 switch (port - gPort)
959 DBG (16, "Outb(0x%03X,0x%02X) escaped ppdev\n", port, value);
975 switch (port - gPort)
1014 DBG (16, "Outb(0x%03X,0x%02X) escaped ppi\n", port, value);
1020 sanei_outb (port, value);
1030 Inb (int port)
1045 switch (port - gPort)
1107 DBG (16, "Inb(0x%03X) escaped ppdev\n", port);
1122 switch (port - gPort)
1167 DBG (16, "Inb(0x%03X) escaped ppi\n", port);
1173 res = sanei_inb (port);
1181 Insb (int port, unsigned char *dest, int size)
1190 dest[i] = Inb (port);
1194 sanei_insb (port, dest, size);
1200 Outsb (int port, unsigned char *source, int size)
1210 Outb (port, source[i]);
1215 sanei_outsb (port, source, size);
1224 Insw (int port, unsigned char *dest, int size)
1234 dest[i] = Inb (port);
1239 sanei_insl (port, dest, size);
1245 Outsw (int port, unsigned char *source, int size)
1255 Outb (port, source[i]);
1260 sanei_outsl (port, source, size);
1373 sanei_umax_pp_setport (int port)
1375 gPort = port;
1421 /* set to the parallel port needed using ppdev
1446 /* set parallel port mode to 'compatible'*/
1459 /* set parallel port mode to 'bidirectionel'*/
1472 /* set parallel port mode to 'fifo'*/
2135 /* reset port */
2421 /* restore port state */
4893 /* restore port , successful exit */
5532 /* restore port state */
6902 /* saves port state */
7527 /* set port to its initial state */