Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  send ATA_COMMAND function
« previous next »
  • Print
Pages: [1]

Author Topic: send ATA_COMMAND function  (Read 1608 times)

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
send ATA_COMMAND function
« on: May 05, 2007, 10:24:03 AM »
Hi,

I was thinking of making a S.M.A.R.T.-status-reading plugin for Rockbox and was wondering which command is used for sending ATA_COMMANDs to the HDD?

According to http://svn.rockbox.org/viewvc.cgi/trunk/firmware/drivers/ata.c?revision=13114&view=markup, this would be SET_REG(), but is this safe to use and can this function be accessed from inside a plugin?

Or should there be somekind of wrapper function in the kernel/ATA-driver for direct access to the HDD?

And what about reading the HDD's response, do you just check the content of ATA_STATUS (in ata.c; cause #define ATA_STATUS      ATA_COMMAND)?

Thx
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  send ATA_COMMAND function
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.045 seconds with 15 queries.