equal
deleted
inserted
replaced
10 ***************************************************************/ |
10 ***************************************************************/ |
11 |
11 |
12 #include <linux/slab.h> |
12 #include <linux/slab.h> |
13 |
13 |
14 #include "ec_command.h" |
14 #include "ec_command.h" |
15 #include "ec_dbg.h" |
|
16 |
15 |
17 /***************************************************************/ |
16 /***************************************************************/ |
18 |
17 |
19 /** |
18 /** |
20 Kommando-Konstruktor. |
19 Kommando-Konstruktor. |
77 unsigned short node_address, |
76 unsigned short node_address, |
78 unsigned short offset, |
77 unsigned short offset, |
79 unsigned int length) |
78 unsigned int length) |
80 { |
79 { |
81 if (node_address == 0x0000) |
80 if (node_address == 0x0000) |
82 EC_DBG(KERN_WARNING "EtherCAT: Using node address 0x0000!\n"); |
81 printk(KERN_WARNING "EtherCAT: Using node address 0x0000!\n"); |
83 |
82 |
84 ECAT_FUNC_HEADER; |
83 ECAT_FUNC_HEADER; |
85 |
84 |
86 cmd->type = ECAT_CMD_NPRD; |
85 cmd->type = ECAT_CMD_NPRD; |
87 cmd->address.phy.dev.node = node_address; |
86 cmd->address.phy.dev.node = node_address; |
110 unsigned short offset, |
109 unsigned short offset, |
111 unsigned int length, |
110 unsigned int length, |
112 const unsigned char *data) |
111 const unsigned char *data) |
113 { |
112 { |
114 if (node_address == 0x0000) |
113 if (node_address == 0x0000) |
115 EC_DBG(KERN_WARNING "EtherCAT: Using node address 0x0000!\n"); |
114 printk(KERN_WARNING "EtherCAT: Using node address 0x0000!\n"); |
116 |
115 |
117 ECAT_FUNC_HEADER; |
116 ECAT_FUNC_HEADER; |
118 |
117 |
119 cmd->type = ECAT_CMD_NPWR; |
118 cmd->type = ECAT_CMD_NPWR; |
120 cmd->address.phy.dev.node = node_address; |
119 cmd->address.phy.dev.node = node_address; |