Skip to content

Commit 923e8c0

Browse files
krady21dbaluta
authored andcommitted
Documentation: Teaching: Fix assignment 2 dead links
1 parent 70bbe6b commit 923e8c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/teaching/so2/assign2-driver-uart.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ Implementation Details
5858
- to learn how to pass parameters in Linux, see `tldp <https://tldp.org/LDP/lkmpg/2.6/html/x323.html>`__
5959
- the default values are `major=42` and `option=OPTION_BOTH`.
6060
- the interrupt number associated with COM1 is 4 (`IRQ_COM1`) and the interrupt number associated with COM2 is 3 (`IRQ_COM2`)
61-
- `the header <elf.cs.pub.ro/so2/res/teme/uart16550.h>`__ with the definitions needed for special operations;
62-
- a starting point in implementing read / write routines is the `example <elf.cs.pub.ro/so2/res/teme/case.zip>`__ of uppercase / lowercase character device driver; the only difference is that you have to use two buffers, one for read and one for write;
63-
- you can use `kfifo <elf.cs.pub.ro/so2/res/teme/case.zip>`__ for buffers;
61+
- `the header <https://github.com/linux-kernel-labs/linux/blob/master/tools/labs/templates/assignments/2-uart/uart16550.h>`__ with the definitions needed for special operations;
62+
- a starting point in implementing read / write routines is the `example <https://ocw.cs.pub.ro/courses/so2/laboratoare/lab04?&#sincronizare_-_cozi_de_asteptare>`__ of uppercase / lowercase character device driver; the only difference is that you have to use two buffers, one for read and one for write;
63+
- you can use `kfifo <https://lwn.net/Articles/347619/>`__ for buffers;
6464
- you do not have to use deferred functions to read / write data from / to ports (you can do everything from interrupt context);
6565
- you will need to synchronize the read / write routines with the interrupt handling routine for the routines to be blocking; it is recommended to use `synchronization with waiting queues <https://ocw.cs.pub.ro/courses/so2/laboratoare/lab04?&#sincronizare_-_cozi_de_asteptare>`__
6666
- In order for the assigment to work, the `default serial driver` must be disabled:

0 commit comments

Comments
 (0)