LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2011, 08:07 AM   #1
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 227

Rep: Reputation: 32
What is XT-PIC-XT???


Hello,

Install my kernel in a new board, 2.6.24.7-rt26 and now I would like to setup a irq as rise or fall trigger.

Then, I have created a kernel driver to request a irq but return me a error or message:

Quote:
Linux version 2.6.24.7-rt26 (john@linux-2rtk) (gcc version 4.3.2 (OSELAS.Toolchain-1.99.3) ) #1 PREEMPT RT Mon Jun 20 12:15:06 CEST 2011
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009e800 (usable)
BIOS-e820: 000000000009e800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001f7c0000 (usable)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
503MB LOWMEM available.
Entering add_active_range(0, 0, 128960) 0 entries of 256 used
Zone PFN ranges:
DMA 0 -> 4096
Normal 4096 -> 128960
HighMem 128960 -> 128960
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 128960
On node 0 totalpages: 128960
DMA zone: 32 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 4064 pages, LIFO batch:0
Normal zone: 975 pages used for memmap
Normal zone: 123889 pages, LIFO batch:31
HighMem zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
DMI 2.2 present.
Allocating PCI resources starting at 20000000 (gap: 1f7c0000:e0830000)
Real-Time Preemption Support (C) 2004-2007 Ingo Molnar
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 127953
Kernel command line: root=/dev/hda1 ro rootwait quiet video=lxfb:800x600-32@60 acpi=force
No local APIC present or hardware disabled
mapped APIC to ffffb000 (013f5000)
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 8192 bytes)
Detected 498.068 MHz processor.
Console: colour VGA+ 80x25
console [tty0] enabled
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 505556k/515840k available (3420k kernel code, 9804k reserved, 1184k data, 240k init, 0k highmem)
virtual kernel memory layout:
fixmap : 0xfffa8000 - 0xfffff000 ( 348 kB)
pkmap : 0xff800000 - 0xffc00000 (4096 kB)
vmalloc : 0xe0000000 - 0xff7fe000 ( 503 MB)
lowmem : 0xc0000000 - 0xdf7c0000 ( 503 MB)
.init : 0xc0682000 - 0xc06be000 ( 240 kB)
.data : 0xc05571a7 - 0xc067f53c (1184 kB)
.text : 0xc0200000 - 0xc05571a7 (3420 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 996.99 BogoMIPS (lpj=498495)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0088a93d c0c0a13d 00000000 00000000 00000000 00000000 00000000 00000000
CPU: L1 I Cache: 64K (32 bytes/line), D cache 64K (32 bytes/line)
CPU: L2 Cache: 128K (32 bytes/line)
CPU: After all inits, caps: 0088a93d c0c0a13d 00000000 00000000 00000000 00000000 00000000 00000000
Compat vDSO mapped to ffffe000.
CPU: AMD Geode(TM) Integrated Processor by AMD PCS stepping 02
Checking 'hlt' instruction... OK.
Freeing SMP alternatives: 0k freed
ACPI: Core revision 20070126
ACPI Exception (tbxface-0629): AE_NO_ACPI_TABLES, While loading namespace from ACPI tables [20070126]
ACPI: Unable to load the System Description Tables
net_namespace: 76 bytes
NET: Registered protocol family 16
geode: 0 MFGPT timers available.
PCI: PCI BIOS revision 2.10 entry at 0xfa9d0, last bus=0
PCI: Using configuration type 1
Setting up standard PCI resources
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
tracer: 772 pages allocated for 65536<6> entries of 48 bytes
actual entries 65620
pnp: the driver 'system' has been registered
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
krcupreemptd setsched 0
prio = 98
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NTFS driver 2.1.29 [Flags: R/W].
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Boot video device is 0000:00:01.1
ALI M7101 PMU not found.
lxfb 0000:00:01.1: 8192 KB of video memory at 0xee000000
Console: switching to colour frame buffer device 100x37
fb0: Geode LX frame buffer device
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12ac
AMD Geode RNG detected
ipmi message handler version 39.1
ipmi device interface
IPMI System Interface driver.
ipmi_si: Unable to find any System Interface(s)
IPMI Watchdog: driver initialized
Copyright (C) 2004 MontaVista Software - IPMI Powerdown via sys_reboot.
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
pnp: the driver 'serial' has been registered
RAMDISK driver initialized: 1 RAM disks of 5120K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
AMD5536: IDE controller (0x1022:0x209a rev 0x01) at PCI slot 0000:00:0f.2
AMD5536: not 100% native mode: will probe irqs later
AMD5536: 0000:00:0f.2 (rev 01) UDMA100 controller
ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hdaMA, hdbio
AMD5536: IDE port disabled
Probing IDE interface ide0...
hda: TRANSCEND, ATA DISK drive
hda: host max PIO5 wanted PIO255(auto-tune) selected PIO2
hda: host side 80-wire cable detection failed, limiting max speed to UDMA33
hda: UDMA/33 mode selected
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hda: max request size: 128KiB
hda: 3980592 sectors (2038 MB) w/1KiB Cache, CHS=3949/16/63
hda: hda1 hda2
Loading iSCSI transport class v2.0-724.
st: Version 20070203, fixed bufsize 32768, s/g segs 256
Driver 'st' needs updating - please use bus_type methods
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
PCI: Setting latency timer of device 0000:00:0f.5 to 64
ehci_hcd 0000:00:0f.5: EHCI Host Controller
ehci_hcd 0000:00:0f.5: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0f.5: irq 11, io mem 0xefffe000
ehci_hcd 0000:00:0f.5: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
116x: driver isp116x-hcd, 03 Nov 2005
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
PCI: Setting latency timer of device 0000:00:0f.4 to 64
ohci_hcd 0000:00:0f.4: OHCI Host Controller
ohci_hcd 0000:00:0f.4: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:0f.4: irq 11, io mem 0xeffff000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
USB Universal Host Controller Interface driver v3.0
sl811: driver sl811-hcd, 19 May 2005
Initializing USB Mass Storage driver...
usb 2-2: new low speed USB device using ohci_hcd and address 2
usb 2-2: configuration #1 chosen from 1 choice
usb 2-3: new full speed USB device using ohci_hcd and address 3
usb 2-3: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
pnp: the driver 'i8042 kbd' has been registered
pnp: the driver 'i8042 aux' has been registered
pnp: the driver 'i8042 kbd' has been unregistered
pnp: the driver 'i8042 aux' has been unregistered
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: Reakin TS2005F-USB as /devices/pci0000:00/0000:00:0f.4/usb2/2-3/2-3:1.0/input/input0
usbcore: registered new interface driver usbtouchscreen
I2O subsystem v1.325
i2o: max drivers = 8
I2O Configuration OSM v1.323
I2O Bus Adapter OSM v1.317
I2O Block Device OSM v1.325
I2O SCSI Peripheral OSM v1.316
I2O ProcFS OSM v1.316
i2c /dev entries driver
scx200_acb: NatSemi SCx200 ACCESS.bus Driver
w83627hf: Found W83627HF chip at 0x290
device-mapper: ioctl: 4.12.0-ioctl (2007-10-02) initialised: dm-devel@redhat.com
usbcore: registered new interface driver hiddev
input: NOVATEK USB Keyboard as /devices/pci0000:00/0000:00:0f.4/usb2/2-2/2-2:1.0/input/input1
input,hidraw0: USB HID v1.10 Keyboard [NOVATEK USB Keyboard] on usb-0000:00:0f.4-2
input: NOVATEK USB Keyboard as /devices/pci0000:00/0000:00:0f.4/usb2/2-2/2-2:1.1/input/input2
input,hiddev96,hidraw1: USB HID v1.10 Device [NOVATEK USB Keyboard] on usb-0000:00:0f.4-2
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
Using IPI Shortcut mode
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 240k freed
kjournald starting. Commit interval 30 seconds
EXT3 FS on hda2, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
8139too Fast Ethernet driver 0.9.28
eth0: RealTek RTL8139 at 0xfc00, 00:03:2d:0d:a5:1b, IRQ 11
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
pnp: the driver 'rtc_cmos' has been registered
leicif: module license 'Dual BSD/GLP' taints kernel.
No IRQF_TRIGGER set_type function for IRQ 10 (XT-PIC)
No IRQF_TRIGGER set_type function for IRQ 9 (XT-PIC)

LEICIF: Driver cargado correctamente
Why can not setup IRQF_TRIGGER in my irqs??

What is the difference between XT-PIC-XT and IO-APIC-EDGE?

best regards

Last edited by webquinty; 07-27-2011 at 08:08 AM.
 
Old 07-28-2011, 08:48 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Different hardware designs use different interrupt controllers. My understanding is that PIC is the older of the two.

"Use the Source, Luke!" The best way to resolve questions like these, other than "Google It," is to grep the kernel source-tree looking for message fragments.
 
Old 07-28-2011, 03:35 PM   #3
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 227

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by sundialsvcs View Post
Different hardware designs use different interrupt controllers. My understanding is that PIC is the older of the two.

"Use the Source, Luke!" The best way to resolve questions like these, other than "Google It," is to grep the kernel source-tree looking for message fragments.
Yes, you are right.
I have downloaded specifications of interrupt controller of my board (8259A) and it is possible to setup positive edge or positive level, but no more.
The new interrupt controller is better, because it has more options to setup, like positive or negative edge, etc etc.

Thank you very much.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking PIC and non-PIC code...into a shared library debuser123 Programming 2 03-27-2011 09:50 PM
No Pic on my monitor Green Monkey Linux - Newbie 2 10-22-2005 11:01 PM
How can i do pic? AliGe Linux - Newbie 4 10-21-2004 01:36 PM
I want a little pic... Bassy LQ Suggestions & Feedback 1 10-14-2004 01:21 PM
is there a way to change the pic rvijay17 Linux - General 1 02-23-2003 11:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration