All of lore.kernel.org
 help / color / mirror / Atom feed
* SH ATAPI IDE Driver
@ 2009-10-06  3:42 ivy kim
  2009-10-06  4:07 ` Paul Mundt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ivy kim @ 2009-10-06  3:42 UTC (permalink / raw)
  To: linux-sh

Hi there.

It seems that there is no atapi driver for SH7724.
I'm writing this atapi driver for our company's own SH7724 platform
called 'REVE'.
I've wrote one driver, ide-sh.c based on ide-platform.c and succeeded
in IDE disk chip ID reading.
And ide_host_add() returns success, so I could find some entries on
hda in /proc/ide/hda.
My question/problem is as follows;

1. There is no /dev/hda entry after ide_host_add() success.
        Should I make one by hand using mknod?
2. The ide-gd.c driver is required also? If I add ide-gd,
        I have some more /proc/ide/hda entries such as capacity  geometry etc.

Actually I'm new to linux device driver(linux, to be honest). So I'm
not sure if using ide-platform.c as my code base is correct.
When I use ide-gd.c, this code does not 'probe' the IDE drive...

My feeling on writing this type of driver shall be trivial, but my
code is getting complicated. I think I'm lost.
It seems that there is no document on 'Writing IDE device driver'...also.

My code base is kernel 'sh-2.6-2009-06-08-ms7724se-2.6.30-rc6'

Thanks.
BR..

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-28  9:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-06  3:42 SH ATAPI IDE Driver ivy kim
2009-10-06  4:07 ` Paul Mundt
2009-10-28  8:07 ` ivy kim
2009-10-28  9:26 ` Paul Mundt

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.