PARPORT(3) Structures PARPORT(3)NAME
parport - representation of a parallel port
SYNOPSIS
#include <ieee1284.h>
DESCRIPTION
A parport structure represents a parallel port.
STRUCTURE MEMBERS
The structure has the following members:
struct parport {
/* An artibrary name for the port. */
const char *name;
/* The base address of the port, if that has any meaning, or zero. */
unsigned long base_addr;
/* The ECR address of the port, if that has any meaning, or zero. */
unsigned long hibase_addr;
/* The filename associated with this port,
* if that has any meaning, or NULL. */
const char *filename;
};
AUTHOR
Tim Waugh <twaugh@redhat.com>
Author.
COPYRIGHT
Copyright (C) 2001-2003 Tim Waugh
[FIXME: source] 06/17/2014 PARPORT(3)
Check Out this Related Man Page
IEEE1284_DATA(3) Functions IEEE1284_DATA(3)NAME
ieee1284_read_data, ieee1284_write_data, ieee1284_data_dir, ieee1284_wait_data - control the data lines
SYNOPSIS
#include <ieee1284.h>
int ieee1284_read_data(struct parport *port);
void ieee1284_write_data(struct parport *port, unsigned char dt);
int ieee1284_data_dir(struct parport *port, int reverse);
int ieee1284_wait_data(struct parport *port, unsigned char mask, unsigned char val, struct timeval *timeout);
DESCRIPTION
These functions manipulate the data lines of the parallel port associated with port (which must have been claimed using ieee1284_claim(3)).
The lines are represented by an 8-bit number (one line per bit) and a direction. The data lines are driven as a group; they may be all
host-driven (forward direction) or not (reverse direction). When the peripheral is driving them the host must not.
For ieee1284_data_dir the reverse parameter should be zero to turn the data line drivers on and non-zero to turn them off. Some port types
may be unable to switch off the data line drivers.
Setting the data lines may have side effects on some port types (for example, some Amiga ports pulse nStrobe).
ieee1284_wait_data waits, up until the timeout, for the data bits specified in mask to have the corresponding values in val.
RETURN VALUE
ieee1284_read_data returns the 8-bit number representing the data lines unless it is not possible to return such a value with this port
type, in which case it returns an error code. Possible error codes:
E1284_NOTAVAIL
Bi-directional data lines are not available on this system.
E1284_INVALIDPORT
The port parameter is invalid (perhaps it has not been claimed, for instance).
E1284_SYS
There was an error at the operating system level, and errno has been set accordingly.
E1284_TIMEDOUT
The timeout has elapsed.
Whereas ieee1284_read_data may return E1284_NOTAVAIL on its first invocation on the port, if it does not do so then it cannot until
ieee1284_close is called for that port.
AUTHOR
Tim Waugh <twaugh@redhat.com>
Author.
COPYRIGHT
Copyright (C) 2001-2003 Tim Waugh
[FIXME: source] 06/17/2014 IEEE1284_DATA(3)
Hi!
Does anyone know how a high percentage of Hardware Interrupts does affect a Linux system? any why does it generate hardware interrupts?
The affected system is a SuSE 10.2 32bit running 2.6.16.60-0.33-vmi #1 SMP Fri Oct 31 14:24:07 UTC 2008 i686 i686 i386 GNU/Linux
procinfo shows that... (2 Replies)
I typed in sysctl -A | grep na
result:
error: "Success" reading key "dev.parport.parport0.autoprobe"
error: permission denied on key 'net.ipv4.route.flush'
what about these errors? (9 Replies)
I installed a new kernel 3.0.22 on ubuntu server 11.04 32 bit.
when I select the kenel from boot loader it stops when
Code:
loading initial ramdisk...
I added all_generic_ide at the end of linux line and also added dev/sda1 to linux line: root=UUID=dev/sda1
now it says that
... (12 Replies)
Hi.
I'm having problems on multiple Red Hat VM's (on esxi) whereby the network interface IRQ is disabled by the OS. This is the error from dmesg:
command: Write(10): 2a 00 03 42 3f e0 00 00 08 00
mptscsih: ioc0: task abort: SUCCESS (sc=ffff81018b45c680)
irq 67: nobody cared (try... (0 Replies)
Hi Friends,
Can someone help me with below issue , thanks.
Subject : Unable to configure "Reliance NetConnect" on RHEL 5
Here some helpful information :
# lsusb
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 8087:0020
Bus 001 Device 003: ID 192f:0416
Bus 002 Device... (0 Replies)
Hi All,
Could anyone please help to resolve the below problem.
I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error.
I spent 2 days for the above and go through with several suggestion found by googling. But no luck.
... (0 Replies)
Hello everyone. I feel that I'm about to answer my own question, but I just want to be sure that I'm right. I know computers all use, at a very low level, the IRQ system of interrupting the CPU when it needs something. My questions are as follows:
1. Does the device in question, say.. a mouse,... (1 Reply)
I have been trying to get bluetooth working correctly on Linux for a while now. I am using two systems that are having identical issues: Linux Mint 15 64-bit & Ubuntu 13.04 32-bit. Both are using the Cinnamon desktop. I have the following bluetooth dongle:
... (6 Replies)
I'm writing a simple USB driver to drive a stepper motor based on USB Skeleton 2.2 Driver, kernel 3.8. The basic version is running properly. As a advancement, I introduced KTHREAD to call the DEVICE_WRITE (skel_write) (), so that the driver will be available for other tasks & requests.
Calling... (0 Replies)
After upgrading from 14 LTS to 16 LTS the system started getting these hard lockups, where nothing works, can't get to it through ssh, or console.
I have asked for help on Launchpad Ubuntu forum, but so far no replies.
in /var/log/kern.log:
Aug 7 21:47:26 XPS-8700 kernel: NMI... (9 Replies)
I have Ubuntu 16.04 (dual boot with Windows 10) and a HP Spectre x360 laptop.
I have recently bought a Dell Ultrasharp U2515H monitor, which I connect via a Dell docking station.
When I plug the docking station to my laptop on Windows, both monitors are detected and everything works fine.
... (23 Replies)
I'm a little embarrassed after all these years I've never really successfully compiled my own kernel. I used this guide to make the following files:
linux-headers-5.1.9_5.1.9-1_amd64.deb
linux-image-5.1.9_5.1.9-1_amd64.deb
linux-libc-dev_5.1.9-1_amd64.deb
When I first booted into this... (4 Replies)