Skip to content

Commit 19d8beb

Browse files
committed
pktuart.c: re-arrange symbol exports
Signed-off-by: andypugh <andy@bodgesoc.org>
1 parent 213a2e3 commit 19d8beb

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/hal/drivers/mesa-hostmot2/pktuart.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,6 @@ int hm2_pktuart_read(char *name, unsigned char data[], rtapi_u8 *num_frames, rta
559559
* fsizes should be u32 x 16
560560
* FIXME: decide how to work out that the data has all been transferred
561561
*/
562-
EXPORT_SYMBOL_GPL(hm2_pktuart_queue_get_frame_sizes);
563562
int hm2_pktuart_queue_get_frame_sizes(char *name, rtapi_u32 fsizes[]){
564563
// queue as many reads of the FIFO as there are frames
565564
hostmot2_t *hm2;
@@ -589,6 +588,7 @@ int hm2_pktuart_queue_get_frame_sizes(char *name, rtapi_u32 fsizes[]){
589588
}
590589
return j - 1;
591590
}
591+
EXPORT_SYMBOL_GPL(hm2_pktuart_queue_get_frame_sizes);
592592

593593
/* This function queues sufficient reads to extract the available data.
594594
* It does no error checking and does not explicitly check if there is
@@ -599,7 +599,7 @@ int hm2_pktuart_queue_get_frame_sizes(char *name, rtapi_u32 fsizes[]){
599599
* frames, which should have been previously read by
600600
* hm2_pktuart_queue_get_frame_sizes returns the number of frame reads queued.
601601
*/
602-
EXPORT_SYMBOL_GPL(hm2_pktuart_queue_read_data);
602+
603603
int hm2_pktuart_queue_read_data(char *name, rtapi_u32 data[], int bytes) {
604604
hostmot2_t *hm2;
605605
int r;
@@ -628,35 +628,40 @@ int hm2_pktuart_queue_read_data(char *name, rtapi_u32 data[], int bytes) {
628628
}
629629
return i - 1;
630630
}
631+
EXPORT_SYMBOL_GPL(hm2_pktuart_queue_read_data);
632+
631633

632-
EXPORT_SYMBOL_GPL(hm2_pktuart_get_rx_status);
633634
rtapi_u32 hm2_pktuart_get_rx_status(char *name){
634635
hostmot2_t *hm2;
635636
int i = hm2_get_pktuart(&hm2, name);
636637
return hm2->pktuart.rx_status_reg[i];
637638
}
639+
EXPORT_SYMBOL_GPL(hm2_pktuart_get_rx_status);
640+
638641

639-
EXPORT_SYMBOL_GPL(hm2_pktuart_get_tx_status);
640642
rtapi_u32 hm2_pktuart_get_tx_status(char *name){
641643
hostmot2_t *hm2;
642644
int i = hm2_get_pktuart(&hm2, name);
643645
return hm2->pktuart.tx_status_reg[i];
644646
}
647+
EXPORT_SYMBOL_GPL(hm2_pktuart_get_tx_status);
648+
645649

646-
EXPORT_SYMBOL_GPL(hm2_pktuart_get_clock);
647650
int hm2_pktuart_get_clock(char* name){
648651
hostmot2_t *hm2;
649652
int i = hm2_get_pktuart(&hm2, name);
650653
hm2_pktuart_instance_t inst = hm2->pktuart.instance[i];
651654
return inst.clock_freq;
652655
}
656+
EXPORT_SYMBOL_GPL(hm2_pktuart_get_clock);
657+
653658

654-
EXPORT_SYMBOL_GPL(hm2_pktuart_get_version);
655659
int hm2_pktuart_get_version(char* name){
656660
hostmot2_t *hm2;
657661
hm2_get_pktuart(&hm2, name);
658662
return hm2->pktuart.tx_version + 16 * hm2->pktuart.rx_version ;
659663
}
664+
EXPORT_SYMBOL_GPL(hm2_pktuart_get_version);
660665

661666
void hm2_pktuart_print_module(hostmot2_t *hm2){
662667
int i;

0 commit comments

Comments
 (0)