* [Qemu-devel] How to Simulate hardware that counts scanlines?
@ 2006-07-27 3:22 Steve Ellenoff
2006-07-27 9:47 ` [Qemu-devel] Adding a device into Qemu ARM Tieu Ma Dau
2006-07-28 16:53 ` [Qemu-devel] How to Simulate hardware that counts scanlines? André Braga
0 siblings, 2 replies; 4+ messages in thread
From: Steve Ellenoff @ 2006-07-27 3:22 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/html, Size: 1649 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] Adding a device into Qemu ARM
2006-07-27 3:22 [Qemu-devel] How to Simulate hardware that counts scanlines? Steve Ellenoff
@ 2006-07-27 9:47 ` Tieu Ma Dau
2006-07-27 12:41 ` Paul Brook
2006-07-28 16:53 ` [Qemu-devel] How to Simulate hardware that counts scanlines? André Braga
1 sibling, 1 reply; 4+ messages in thread
From: Tieu Ma Dau @ 2006-07-27 9:47 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1370 bytes --]
Hi all,
I'm running Qemu ARM system and Debian Sarge on it.
I try to add a new device, for example a LED, into Qemu ARM system. And I think that I must do the following steps:
1. Make a file led.c which simulates this LED, edit the file vl.c and vl.h
2. In file integratorcp.c, function integratorcp_init(), I must register a MEMORY SPACE for this LED (as the PL011 UART at 0x16000000)
3. Write a character device driver; this device driver will function on the MEMORY SPACE of the LED device. And this device driver has a MAJOR NUMBER
4. Make a character device file with the corresponding MAJOR NUMBER: mknod /dev/my_LED c MAJOR_NUMBER 0
5. Write an application which opens the file /dev/my_LED and write on it (to communication with my LED on Linux)
OR: for example "echo -n a > /dev/my_LED" to communication with my LED on Linux
I find that some of you who added the devices into Qemu ARM system, but I don't sure the steps I think above is as you 've done or not? Please confirm it for me, thank a lot!
Furthermore, I have some questions on the steps above:
+ step 2: which interrupt I can register with the PIC? Or in my case, it must not?
+ step 2: which value of MEMORY SPACE I can register for this LED?
Best regards,
Tieu
---------------------------------
Do you Yahoo!?
Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
[-- Attachment #2: Type: text/html, Size: 1507 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Adding a device into Qemu ARM
2006-07-27 9:47 ` [Qemu-devel] Adding a device into Qemu ARM Tieu Ma Dau
@ 2006-07-27 12:41 ` Paul Brook
0 siblings, 0 replies; 4+ messages in thread
From: Paul Brook @ 2006-07-27 12:41 UTC (permalink / raw)
To: qemu-devel
> Furthermore, I have some questions on the steps above:
> + step 2: which interrupt I can register with the PIC? Or in my case, it
> must not?
> + step 2: which value of MEMORY SPACE I can register for this
> LED?
Anything that's not already being used. Same way you would if you were
designing real hardware.
Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] How to Simulate hardware that counts scanlines?
2006-07-27 3:22 [Qemu-devel] How to Simulate hardware that counts scanlines? Steve Ellenoff
2006-07-27 9:47 ` [Qemu-devel] Adding a device into Qemu ARM Tieu Ma Dau
@ 2006-07-28 16:53 ` André Braga
1 sibling, 0 replies; 4+ messages in thread
From: André Braga @ 2006-07-28 16:53 UTC (permalink / raw)
To: qemu-devel
On 7/27/06, Steve Ellenoff <sellenoff@hotmail.com> wrote:
> The guest os code is polling this register on a very fast interval, and when
> it detects a certain # of scanlines have been counted, it will swap it's
> display buffers, ie, it's waiting for the vblank, so it can have nice smooth
> animations.
Since this is all custom, I'd rather raise an interrupt when the DAC
reaches the final portion of the frame buffer... This has to be better
than polling.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-28 16:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-27 3:22 [Qemu-devel] How to Simulate hardware that counts scanlines? Steve Ellenoff
2006-07-27 9:47 ` [Qemu-devel] Adding a device into Qemu ARM Tieu Ma Dau
2006-07-27 12:41 ` Paul Brook
2006-07-28 16:53 ` [Qemu-devel] How to Simulate hardware that counts scanlines? André Braga
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.