Changeset 1388 for trunk


Ignore:
Timestamp:
07/26/11 00:07:05 (10 months ago)
Author:
hailfinger
Message:

satamv and atahpt require PCI port I/O which isn't currently supported
on any architecture except x86/x86_64.
Generate the same compiler error as other programmer drivers.

Signed-off-by: Andrew Morgan <ziltro@…>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/atahpt.c

    r1338 r1388  
    1818 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA 
    1919 */ 
     20 
     21#if defined(__i386__) || defined(__x86_64__) 
    2022 
    2123#include <stdlib.h> 
     
    7880        return INB(io_base_addr + BIOS_ROM_DATA); 
    7981} 
     82 
     83#else 
     84#error PCI port I/O access is not supported on this architecture yet. 
     85#endif 
  • trunk/satamv.c

    r1338 r1388  
    2020 
    2121/* Datasheets are not public (yet?) */ 
     22#if defined(__i386__) || defined(__x86_64__) 
    2223 
    2324#include <stdlib.h> 
     
    183184        return satamv_indirect_chip_readb(addr); 
    184185} 
     186 
     187#else 
     188#error PCI port I/O access is not supported on this architecture yet. 
     189#endif 
Note: See TracChangeset for help on using the changeset viewer.