vii
Chapter 4: Device Drivers ..............................................................................45
Overview ...................................................................................................................... 46
Adding devices ............................................................................................................ 46
deviceInfo structure ....................................................................................................46
Device driver functions .............................................................................................. 48
deviceEnter ..........................................................................................................49
deviceInit .............................................................................................................50
deviceOpen ..........................................................................................................51
deviceClose .........................................................................................................53
deviceConfig .......................................................................................................54
deviceRead ..........................................................................................................55
deviceWrite ..........................................................................................................57
deviceIoctl ...........................................................................................................59
Modifications to the Green Hills system library..................................................... 60
Making modifications....................................................................................... 60
Chapter 5: Updating Flash Support ....................................................... 61
Overview ...................................................................................................................... 62
Flash table data structure ........................................................................................... 63
Adding new flash ........................................................................................................ 65
Supporting larger flash............................................................................................... 66
Chapter 6: Bootloader Utility Overview............................................ 67
Overview ...................................................................................................................... 68
Bootloader application images .................................................................................. 68
ROM image ........................................................................................................ 69
RAM image ........................................................................................................ 69
Application image structure ......................................................................................70
Application image header................................................................................ 70
Boothdr utility.............................................................................................................. 72
Generating an image................................................................................................... 73
Configuration file .............................................................................................. 73