Skip to contentSkip to conversation

read/write functions

DISCUSSION Abraham vd Merwe 2 participants 2 messages Jun 4, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi!

Do you need to implement all read/write/copy functions in the map driver even if your chip driver only uses some of those functions?

For example, let's say I only use map->read32() and map->write32(), do I still need map->read16(), etc in my map driver or can I just leave them uninitialized (NULL)?

Signature · 15 lines
Regards
 Abraham

My cup hath runneth'd over with love.

__________________________________________________________
 Abraham vd Merwe - 2d3D, Inc.

 Device Driver Development, Outsourcing, Embedded Systems

  Cell: +27 82 565 4451         Snailmail:
   Tel: +27 21 761 7549            Block C, Antree Park
   Fax: +27 21 761 7648            Doncaster Road
 Email: [email protected]         Kenilworth, 7700
  Http: http://www.2d3d.com        South Africa
#1 lore raw
Quoted 6 lines · [email protected] said:

Do you need to implement all read/write/copy functions in the map
driver even if your chip driver only uses some of those functions?

For example, let's say I only use map->read32() and map->write32(), do I still need map->read16(), etc in my map driver or can I just leave them uninitialized (NULL)?

You can leave them NULL. If any chip driver calls them it's buggy, so it'll oops.

--
dwmw2