MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / arch / nios2nommu / scripts / nios2_system.h / altera_avalon_spi.pm
blob719a22c1707ddc6b3c92e54708943a38b431b0bf
1 package altera_avalon_spi;
3 use base qw(BasicModule);
4 use strict;
6 sub required_module_names {
7 "spi"
10 sub required_class_name {
11 "altera_avalon_spi"
14 sub base_address_cast {
15 "np_spi"
18 sub print_prefix {
19 my ($class, $system) = @_;
21 print "#ifndef __ASSEMBLY__\n";
22 print "#include <asm/spi_struct.h>\n";
23 print "#endif\n\n";
26 sub run {
27 altera_avalon_spi->run2 (@_);