diff -Nur rtems-4.6.2/c/src/lib/libbsp/i386/pc386/ChangeLog rtems-4.6.2-bigimfs-ackhack/c/src/lib/libbsp/i386/pc386/ChangeLog
old
|
new
|
|
| 1 | 2004-10-21 Thomas Doerfler <Thomas.Doerfler@imd-systems.de> |
| 2 | |
| 3 | PR 703/filesystem |
| 4 | * ide/ide.c |
| 5 | - extend the "modes_available" and "mode_active" parameters to |
| 6 | unsigned16 for UDMA support |
| 7 | |
1 | 8 | 2004-10-13 Eric Norum <norume@aps.anl.gov> |
2 | 9 | |
3 | 10 | PR 688/bsps |
diff -Nur rtems-4.6.2/c/src/lib/libbsp/i386/pc386/ide/ide.c rtems-4.6.2-bigimfs-ackhack/c/src/lib/libbsp/i386/pc386/ide/ide.c
old
|
new
|
|
288 | 288 | +---------------------------------------------------------------------------+ |
289 | 289 | | Input Parameters: | |
290 | 290 | \*-------------------------------------------------------------------------*/ |
291 | | int minor, /* controller minor number */ |
292 | | unsigned8 modes_avail /* optional argument */ |
| 291 | int minor, /* controller minor number */ |
| 292 | unsigned16 modes_avail /* optional argument */ |
293 | 293 | ) |
294 | 294 | /*-------------------------------------------------------------------------*\ |
295 | 295 | | Return Value: | |
diff -Nur rtems-4.6.2/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog rtems-4.6.2-bigimfs-ackhack/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog
old
|
new
|
|
| 1 | 2004-10-21 Thomas Doerfler <Thomas.Doerfler@imd-systems.de> |
| 2 | |
| 3 | PR 703/filesystem |
| 4 | * ide/pcmcia_ide.c |
| 5 | - extend the "modes_available" and "mode_active" parameters to |
| 6 | unsigned16 for UDMA support |
| 7 | |
1 | 8 | 2003-12-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de> |
2 | 9 | |
3 | 10 | * startup/Makefile.am: start.S instead of start.s. |
diff -Nur rtems-4.6.2/c/src/lib/libbsp/powerpc/mbx8xx/ide/pcmcia_ide.c rtems-4.6.2-bigimfs-ackhack/c/src/lib/libbsp/powerpc/mbx8xx/ide/pcmcia_ide.c
old
|
new
|
|
356 | 356 | +---------------------------------------------------------------------------+ |
357 | 357 | | Input Parameters: | |
358 | 358 | \*-------------------------------------------------------------------------*/ |
359 | | int minor, /* controller minor number */ |
360 | | unsigned8 modes_avail /* optional argument */ |
| 359 | int minor, /* controller minor number */ |
| 360 | unsigned16 modes_avail /* optional argument */ |
361 | 361 | ) |
362 | 362 | /*-------------------------------------------------------------------------*\ |
363 | 363 | | Return Value: | |
diff -Nur rtems-4.6.2/c/src/lib/libbsp/shared/ChangeLog rtems-4.6.2-bigimfs-ackhack/c/src/lib/libbsp/shared/ChangeLog
old
|
new
|
|
| 1 | 2004-10-21 Thomas Doerfler <Thomas.Doerfler@imd-systems.de> |
| 2 | |
| 3 | PR 703/filesystem |
| 4 | * ide_ctrl.c |
| 5 | - extend the "modes_available" and "mode_active" parameters to |
| 6 | unsigned16 for UDMA support |
| 7 | |
1 | 8 | 2004-10-13 Eric Norum <norume@aps.anl.gov> |
2 | 9 | |
3 | 10 | PR 688/bsps |
diff -Nur rtems-4.6.2/c/src/lib/libbsp/shared/ide_ctrl.c rtems-4.6.2-bigimfs-ackhack/c/src/lib/libbsp/shared/ide_ctrl.c
old
|
new
|
|
163 | 163 | * Set controller's speed of IO operations |
164 | 164 | * |
165 | 165 | * PARAMETERS: |
166 | | * minor - minor number of controller |
167 | | * modes_avaible - speeds available |
| 166 | * minor - minor number of controller |
| 167 | * modes_available - speeds available |
168 | 168 | * |
169 | 169 | * RETURNS: |
170 | 170 | * RTEMS_SUCCESSFUL on success, or error code if |
171 | 171 | * error occured |
172 | 172 | */ |
173 | 173 | rtems_status_code |
174 | | ide_controller_config_io_speed(int minor, unsigned8 modes_avaible) |
| 174 | ide_controller_config_io_speed(int minor, unsigned16 modes_available) |
175 | 175 | { |
176 | 176 | return IDE_Controller_Table[minor].fns->ctrl_config_io_speed( |
177 | 177 | minor, |
178 | | modes_avaible); |
| 178 | modes_available); |
179 | 179 | } |
diff -Nur rtems-4.6.2/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c rtems-4.6.2-bigimfs-ackhack/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
old
|
new
|
|
40 | 40 | case PPC_620: return "MPC620"; |
41 | 41 | case PPC_860: return "MPC860"; |
42 | 42 | case PPC_8260: return "MPC8260"; |
| 43 | case PPC_603le: return "MPC603le"; |
43 | 44 | default: |
44 | 45 | printk("Unknown CPU value of 0x%x. Please add it to <libcpu/powerpc/shared/include/cpuIdent.c>\n", cpu ); |
45 | 46 | } |
… |
… |
|
62 | 63 | case PPC_620: |
63 | 64 | case PPC_860: |
64 | 65 | case PPC_8260: |
| 66 | case PPC_603le: |
65 | 67 | return current_ppc_cpu; |
66 | 68 | default: |
67 | 69 | printk("Unknown PVR value of 0x%x. Please add it to <libcpu/powerpc/shared/include/cpuIdent.c>\n", pvr ); |
diff -Nur rtems-4.6.2/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h rtems-4.6.2-bigimfs-ackhack/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h
old
|
new
|
|
32 | 32 | PPC_860 = 0x50, |
33 | 33 | PPC_821 = PPC_860, |
34 | 34 | PPC_8260 = 0x81, |
| 35 | PPC_603le = 0x8082, /* 603le core, in MGT5100 and MPC5200 */ |
35 | 36 | PPC_UNKNOWN = 0xff |
36 | 37 | } ppc_cpu_id_t; |
37 | 38 | |
diff -Nur rtems-4.6.2/c/src/libchip/ChangeLog rtems-4.6.2-bigimfs-ackhack/c/src/libchip/ChangeLog
old
|
new
|
|
| 1 | 2004-10-21 Thomas Doerfler <Thomas.Doerfler@imd-systems.de> |
| 2 | |
| 3 | PR 703/filesystem |
| 4 | * ata_internal.h ide_ctrl_cfg.h ide_ctrl_io.h ata.c ide_controller.c: |
| 5 | - move definitions for ATA modes into ide_ctrl_cfg.h, to make them |
| 6 | available for BSPS/device drivers |
| 7 | - extend the "modes_available" and "mode_active" parameters to |
| 8 | unsigned16 for UDMA support |
| 9 | |
1 | 10 | 2004-10-13 Eric Norum <norume@aps.anl.gov> |
2 | 11 | |
3 | 12 | PR 688/bsps |
diff -Nur rtems-4.6.2/c/src/libchip/ide/ata.c rtems-4.6.2-bigimfs-ackhack/c/src/libchip/ide/ata.c
old
|
new
|
|
1159 | 1159 | ATA_DEV_INFO(ctrl_minor, dev).mode_active = ATA_MODES_PIO3; |
1160 | 1160 | } |
1161 | 1161 | else { |
1162 | | ATA_DEV_INFO(ctrl_minor, dev).modes_avaible = |
| 1162 | ATA_DEV_INFO(ctrl_minor, dev).modes_available = |
1163 | 1163 | ((CF_LE_W(buffer[64]) & 0x1) ? ATA_MODES_PIO3 : 0) | |
1164 | 1164 | ((CF_LE_W(buffer[64]) & 0x2) ? ATA_MODES_PIO4 : 0) | |
1165 | 1165 | ((CF_LE_W(buffer[63]) & 0x1) ? ATA_MODES_DMA0 : 0) | |
… |
… |
|
1167 | 1167 | ATA_MODES_DMA0 | ATA_MODES_DMA1 : 0) | |
1168 | 1168 | ((CF_LE_W(buffer[63]) & 0x4) ? |
1169 | 1169 | ATA_MODES_DMA0 | ATA_MODES_DMA1 | ATA_MODES_DMA2 : 0); |
1170 | | if (ATA_DEV_INFO(ctrl_minor, dev).modes_avaible == 0) |
| 1170 | if (ATA_DEV_INFO(ctrl_minor, dev).modes_available == 0) |
1171 | 1171 | continue; |
1172 | 1172 | /* |
1173 | 1173 | * choose most appropriate ATA device data I/O speed supported |
… |
… |
|
1175 | 1175 | */ |
1176 | 1176 | status = ide_controller_config_io_speed( |
1177 | 1177 | ctrl_minor, |
1178 | | ATA_DEV_INFO(ctrl_minor, dev).modes_avaible); |
| 1178 | ATA_DEV_INFO(ctrl_minor, dev).modes_available); |
1179 | 1179 | if (status != RTEMS_SUCCESSFUL) |
1180 | 1180 | continue; |
1181 | 1181 | } |
diff -Nur rtems-4.6.2/c/src/libchip/ide/ata_internal.h rtems-4.6.2-bigimfs-ackhack/c/src/libchip/ide/ata_internal.h
old
|
new
|
|
52 | 52 | |
53 | 53 | #define ATA_MAX_CMD_REG_OFFSET 8 |
54 | 54 | |
55 | | /* ATA modes */ |
56 | | #define ATA_MODES_PIO3 0x001 |
57 | | #define ATA_MODES_PIO4 0x002 |
58 | | |
59 | | #define ATA_MODES_PIO 0x003 |
60 | | |
61 | | #define ATA_MODES_DMA0 0x004 |
62 | | #define ATA_MODES_DMA1 0x008 |
63 | | #define ATA_MODES_DMA2 0x010 |
64 | | |
65 | | #define ATA_MODES_UDMA0 0x020 |
66 | | #define ATA_MODES_UDMA1 0x040 |
67 | | #define ATA_MODES_UDMA2 0x080 |
68 | | #define ATA_MODES_UDMA3 0x100 |
69 | | #define ATA_MODES_UDMA4 0x200 |
70 | | #define ATA_MODES_UDMA5 0x400 |
71 | | |
72 | | #define ATA_MODES_UDMA 0x7e0 |
73 | | #define ATA_MODES_DMA 0x7fc |
74 | | |
75 | 55 | |
76 | 56 | /* ATA Commands */ |
77 | 57 | |
… |
… |
|
308 | 288 | unsigned8 max_multiple; /* 0 if READ/WRITE MULTIPLE is unsupported */ |
309 | 289 | unsigned8 current_multiple; |
310 | 290 | |
311 | | unsigned8 modes_avaible; /* OR of values for this modes */ |
312 | | unsigned8 mode_active; |
| 291 | unsigned16 modes_available; /* OR of values for this modes */ |
| 292 | unsigned16 mode_active; |
313 | 293 | } ata_dev_t; |
314 | 294 | |
315 | 295 | /* |
diff -Nur rtems-4.6.2/c/src/libchip/ide/ide_controller.c rtems-4.6.2-bigimfs-ackhack/c/src/libchip/ide/ide_controller.c
old
|
new
|
|
163 | 163 | * Set controller's speed of IO operations |
164 | 164 | * |
165 | 165 | * PARAMETERS: |
166 | | * minor - minor number of controller |
167 | | * modes_avaible - speeds available |
| 166 | * minor - minor number of controller |
| 167 | * modes_available - speeds available |
168 | 168 | * |
169 | 169 | * RETURNS: |
170 | 170 | * RTEMS_SUCCESSFUL on success, or error code if |
171 | 171 | * error occured |
172 | 172 | */ |
173 | 173 | rtems_status_code |
174 | | ide_controller_config_io_speed(int minor, unsigned8 modes_avaible) |
| 174 | ide_controller_config_io_speed(int minor, unsigned16 modes_available) |
175 | 175 | { |
176 | 176 | return IDE_Controller_Table[minor].fns->ctrl_config_io_speed( |
177 | 177 | minor, |
178 | | modes_avaible); |
| 178 | modes_available); |
179 | 179 | } |
diff -Nur rtems-4.6.2/c/src/libchip/ide/ide_ctrl_cfg.h rtems-4.6.2-bigimfs-ackhack/c/src/libchip/ide/ide_ctrl_cfg.h
old
|
new
|
|
1 | 1 | /* |
2 | 2 | * ide_ctrl_cfg.h |
3 | 3 | * |
4 | | * LibChip library IDE controller header file - structuers used for |
| 4 | * LibChip library IDE controller header file - structures used for |
5 | 5 | * configuration and plugin interface definition. |
6 | 6 | * |
7 | 7 | * Copyright (C) 2002 OKTET Ltd., St.-Petersburg, Russia |
… |
… |
|
30 | 30 | IDE_CUSTOM /* BSP specific driver */ |
31 | 31 | } ide_ctrl_devs_t; |
32 | 32 | |
| 33 | /* ATA modes: bit masks used in ctrl_config_io_speed call */ |
| 34 | #define ATA_MODES_PIO3 0x001 |
| 35 | #define ATA_MODES_PIO4 0x002 |
| 36 | |
| 37 | #define ATA_MODES_PIO 0x003 |
| 38 | |
| 39 | #define ATA_MODES_DMA0 0x004 |
| 40 | #define ATA_MODES_DMA1 0x008 |
| 41 | #define ATA_MODES_DMA2 0x010 |
| 42 | |
| 43 | #define ATA_MODES_UDMA0 0x020 |
| 44 | #define ATA_MODES_UDMA1 0x040 |
| 45 | #define ATA_MODES_UDMA2 0x080 |
| 46 | #define ATA_MODES_UDMA3 0x100 |
| 47 | #define ATA_MODES_UDMA4 0x200 |
| 48 | #define ATA_MODES_UDMA5 0x400 |
| 49 | |
| 50 | #define ATA_MODES_UDMA 0x7e0 |
| 51 | #define ATA_MODES_DMA 0x7fc |
| 52 | |
| 53 | |
33 | 54 | /* |
34 | 55 | * Each driver for a particular controller have to provide following |
35 | 56 | * functions in such a structure. The only field which should not be NULL |
… |
… |
|
60 | 81 | rtems_unsigned32 *pos); |
61 | 82 | |
62 | 83 | rtems_status_code (*ctrl_config_io_speed)(int minor, |
63 | | unsigned8 modes_available); |
| 84 | unsigned16 modes_available); |
64 | 85 | } ide_ctrl_fns_t; |
65 | 86 | |
66 | 87 | /* |
diff -Nur rtems-4.6.2/c/src/libchip/ide/ide_ctrl_io.h rtems-4.6.2-bigimfs-ackhack/c/src/libchip/ide/ide_ctrl_io.h
old
|
new
|
|
167 | 167 | * Set controller's speed of IO operations |
168 | 168 | * |
169 | 169 | * PARAMETERS: |
170 | | * minor - minor number of controller |
171 | | * modes_avaible - speeds available |
| 170 | * minor - minor number of controller |
| 171 | * modes_available - speeds available |
172 | 172 | * |
173 | 173 | * RETURNS: |
174 | 174 | * RTEMS_SUCCESSFUL on success, or error code if |
175 | 175 | * error occured |
176 | 176 | */ |
177 | 177 | rtems_status_code |
178 | | ide_controller_config_io_speed(int minor, unsigned8 modes_avaible); |
| 178 | ide_controller_config_io_speed(int minor, unsigned16 modes_available); |
179 | 179 | |
180 | 180 | #ifdef __cplusplus |
181 | 181 | } |