wangbowen6
|
069fac1c67
|
power/relay: add relay driver framework for NuttX
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
|
2022-12-22 20:30:49 +08:00 |
|
TimJTi
|
5f7bf743c5
|
Add LP503x RGB LED driver
style corrections
Update lp503x.h
Update lp503x.h
Update lp503x.c
Update lp503x.h
post review changes
|
2022-12-22 13:39:05 +08:00 |
|
Petro Karashchenko
|
b107e4f417
|
nuttx: unify MIN, MAX and ABS macro definition across the code
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
|
2022-12-21 09:31:28 +08:00 |
|
pengyiqiang
|
72fdea5c13
|
video/fb: initializes the info structure
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
|
2022-12-21 01:16:55 +02:00 |
|
zhanghongyu
|
ba9ef06970
|
tun: add ioctl cmd TUNGETIFF implement
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
|
2022-12-20 21:15:50 +08:00 |
|
Peter Bee
|
2b11fd585f
|
drivers/video: fix typo
Wrong buf used
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
|
2022-12-20 17:00:44 +08:00 |
|
jihandong
|
8e6185f4ad
|
driver/fb: support linux info.
add struct fix_screeninfo and var_screeninfo, and related ioctl,
macro.
Signed-off-by: jihandong <jihandong@xiaomi.com>
|
2022-12-20 15:54:00 +08:00 |
|
Xiang Xiao
|
243983328a
|
drivers/video: Correct the code style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-17 20:43:07 +08:00 |
|
Xiang Xiao
|
21e35362a3
|
drivers/video: Add stop_capture function
and ensure imgsensor_ops_s::stop_capture get called
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-17 20:43:07 +08:00 |
|
Xiang Xiao
|
eb4dabaac6
|
drivers/video: Check th size for IMGSENSOR_CTRL_TYPE_U[8|16|32]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-17 20:43:07 +08:00 |
|
Xiang Xiao
|
4773eec916
|
drivers/video: Move the clip operation from video_s_selection to validate_frame_setting
to ensure the validation is same for VIDIOC_S_SELECTION, VIDIOC_S_PARM and VIDIOC_S_FMT
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-17 20:43:07 +08:00 |
|
Xiang Xiao
|
10d79195ba
|
drivers/video: Replace malloc/realloc/free with kmm_[malloc/realloc/free]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-17 20:43:07 +08:00 |
|
Xiang Xiao
|
ec1cbed9b0
|
drivers/video: Zero all fields in an output struct
and don't zero fields which is used as input
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-17 20:43:07 +08:00 |
|
Xiang Xiao
|
5eb8189c26
|
drivers/video: Remove validate_frame_setting NULL check from video_[s|try]_fmt
since the check is already done in validate_frame_setting
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-17 20:43:07 +08:00 |
|
yinshengkai
|
6f66c0ea0b
|
drivers/note: sched_note support mulit-channel
call callbacks for different channels in sched_note_*
noteram channel is enabled by default
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
|
2022-12-17 19:41:21 +08:00 |
|
Xiang Xiao
|
9cc608e4c4
|
drivers/serial: Don't call uart_shutdown if the serial work as a console
since uart_setup is skip at line 556 for the console device
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-17 01:04:15 +02:00 |
|
Xiang Xiao
|
d5689e070b
|
net/arp: Remove nuttx/net/arp.h
1.move ARPHRD_ETHER to netinet/arp.h
1.move arp_entry_s to net/arp/arp.h
2.move arp_input to nuttx/net/netdev.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-16 22:10:59 +02:00 |
|
Xiang Xiao
|
06842c824a
|
sched/note: Change sched_note_[begin|end] to macro
improve the speed
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-16 12:20:53 +02:00 |
|
yinshengkai
|
552cf4b549
|
merge sched_note_spinxx into sched_note_spincommon
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
|
2022-12-16 17:03:53 +08:00 |
|
chao an
|
01eb4d586b
|
mm/iob: iob members are initialized after allocate
Signed-off-by: chao an <anchao@xiaomi.com>
|
2022-12-16 09:51:53 +08:00 |
|
yinshengkai
|
2460ff4f78
|
drivers/note: rename /dev/note to /dev/note/ram
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
|
2022-12-15 15:53:49 +08:00 |
|
Xiang Xiao
|
03f07effc9
|
drivers/note: Fix the style issue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-14 21:24:13 +02:00 |
|
Xiang Xiao
|
c36640e205
|
drivers/segger: Rename nuttx/note/note_sysview.h to nuttx/segger/sysview.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-14 21:24:13 +02:00 |
|
Xiang Xiao
|
126c93015f
|
drivers/node: Rename sched_note.c to to note_driver.c
prepare to support the multiple note driver
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-14 21:24:13 +02:00 |
|
Xiang Xiao
|
d7307ef26c
|
drivers/node: Rename note_register to note_initialize
prepare to support the multiple note driver
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-14 21:24:13 +02:00 |
|
Xiang Xiao
|
1555c9b8f8
|
drivers/video: Zero next field of dequeued buffer before return dequeue_vbuf_unsafe
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-13 21:38:22 +02:00 |
|
Xiang Xiao
|
e15bccaa71
|
drivers/video: Don't need update vbuf_tail in dequeue_vbuf_unsafe
since it is already done in video_framebuff_queue_container
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-13 21:38:22 +02:00 |
|
Xiang Xiao
|
01d7f44480
|
drivers/video: Merge vbuf_next assignment in video_framebuff_queue_container
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-13 21:38:22 +02:00 |
|
Xiang Xiao
|
d09f1fb186
|
drivers/video: Keep the old state in case of fail
and ensure the internal state get clear if sz equals zero
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-13 21:38:22 +02:00 |
|
Xiang Xiao
|
ae3cadf03c
|
drivers/video: Skip all action if video_framebuff_realloc_container doesn't change the container size
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-13 21:38:22 +02:00 |
|
Xiang Xiao
|
aa20b1e8bd
|
drivers/video: Zero all video_framebuff_t fields in video_framebuff_init
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-13 21:38:22 +02:00 |
|
chao an
|
cda8b79950
|
virtio/net: reschedule interrupt work If rx data remaining
Signed-off-by: chao an <anchao@xiaomi.com>
|
2022-12-12 16:56:11 +09:00 |
|
yinshengkai
|
026c8eede0
|
drivers/note: unify spinlock related functions
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
|
2022-12-10 02:30:24 +08:00 |
|
Peter Bee
|
77504aa1b5
|
drivers/video: minor fix
Fix missing header for bool in imgsensor.h and FAR in video.c
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
|
2022-12-09 23:37:49 +08:00 |
|
yinshengkai
|
09814831b8
|
sched: move sched_note.c to drivers/note
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
|
2022-12-09 23:36:11 +08:00 |
|
Peter van der Perk
|
f72f7ebee0
|
Sysview add prefix kconfig to add an option to decouple sched_note calls
|
2022-12-08 17:49:55 +01:00 |
|
zhangyuan21
|
d2c52db68e
|
usb/ft232r: fixed build issue
1. fixed build issue;
2. make sure the read data length must greater than or equal to 2;
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
|
2022-12-08 22:49:26 +08:00 |
|
zhangyuan21
|
5dc4e23bb7
|
usbdev/adb: fixed usbclass steup issue
1. set usbdev when usb class bind
2. don't call EP_SUBMIT when receive OUT message
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
|
2022-12-07 12:24:09 +08:00 |
|
sunkun3
|
d9acaeaccf
|
usbdev:resolve ADB compilation errors
Signed-off-by: sunkun3 <sunkun3@xiaomi.com>
|
2022-12-07 12:24:09 +08:00 |
|
zhangyuan21
|
9150ea0e95
|
arch_alarm: don't init local variable for fpu test case fail
D16 register will be cleared when compiling with gcc on some boards.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
|
2022-12-07 12:21:16 +08:00 |
|
Peter Bee
|
31347da187
|
drivers/video: add support for V4L2 mmap-ed buffer
Support V4L2_MEMORY_MMAP memory mode
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
|
2022-12-07 01:21:46 +08:00 |
|
Xiang Xiao
|
b526e06de1
|
drivers/lcd: Reuse lib_meminstream_s as much as possible
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-05 14:27:55 +01:00 |
|
Xiang Xiao
|
055f1f33eb
|
libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc)
to make the naming style consistent with each other
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-05 14:27:55 +01:00 |
|
Xiang Xiao
|
4be9ec774b
|
Don't download tarballs if a local git repo found
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-05 10:47:36 +01:00 |
|
Xiang Xiao
|
f142cf0e55
|
drivers/video: Remove memset from cleanup_streamresources
since initialize_streamresources will do it
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-05 10:35:26 +01:00 |
|
Xiang Xiao
|
99311ed6a5
|
drivers/video: Should do uninitialization if is_initialized is true
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-05 10:35:26 +01:00 |
|
Xiang Xiao
|
92e72f8624
|
drivers/video: Return zero if gamma curve isn't supported in initialize_scene_gamma
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-05 10:35:26 +01:00 |
|
Xiang Xiao
|
c8868b3745
|
drivers/video: Return 0 in case g_video_sensor_ops or get_supported_value is NULL
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-05 10:35:26 +01:00 |
|
Xiang Xiao
|
c6e9edcbb6
|
net: Rename arp_arpin to arp_input
align with other similar function(e.g. ipv4_input and ipv6_input)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-12-04 20:39:21 +08:00 |
|
chao an
|
34d2cde8a8
|
net/l2/l3/l4: add support of iob offload
1. Add new config CONFIG_NET_LL_GUARDSIZE to isolation of l2 stack,
which will benefit l3(IP) layer for multi-MAC(l2) implementation,
especially in some NICs such as celluler net driver.
new configuration options: CONFIG_NET_LL_GUARDSIZE
CONFIG_NET_LL_GUARDSIZE will reserved l2 buffer header size of
network buffer to isolate the L2/L3 (MAC/IP) data on network layer,
which will be beneficial to L3 network layer protocol transparent
transmission and forwarding
------------------------------------------------------------
Layout of frist iob entry:
iob_data (aligned by CONFIG_IOB_ALIGNMENT)
|
| io_offset(CONFIG_NET_LL_GUARDSIZE)
| |
-------------------------------------------------
iob | Reserved | io_len |
-------------------------------------------------
-------------------------------------------------------------
Layout of different NICs implementation:
iob_data (aligned by CONFIG_IOB_ALIGNMENT)
|
| io_offset(CONFIG_NET_LL_GUARDSIZE)
| |
-------------------------------------------------
Ethernet | Reserved | ETH_HDRLEN | io_len |
---------------------------------|---------------
8021Q | Reserved | ETH_8021Q_HDRLEN | io_len |
---------------------------------|---------------
ipforward | Reserved | io_len |
-------------------------------------------------
--------------------------------------------------------------------
2. Support iob offload to l2 driver to avoid unnecessary memory copy
Support send/receive iob vectors directly between the NICs and l3/l4
stack to avoid unnecessary memory copies, especially on hardware that
supports Scatter/gather, which can greatly improve performance.
new interface to support iob offload:
------------------------------------------
| IOB version | original |
|----------------------------------------|
| devif_iob_poll() | devif_poll() |
| ... | ... |
------------------------------------------
--------------------------------------------------------------------
1> NIC hardware support Scatter/gather transfer
TX:
tcp_poll()/udp_poll()/pkt_poll()/...(l3|l4)
/ \
/ \
devif_poll_[l3|l4]_connections() devif_iob_send() (nocopy:udp/icmp/...)
/ \ (copy:tcp)
/ \
devif_iob_poll("NIC"_txpoll) callback() // "NIC"_txpoll
|
dev->d_iob: |
--------------- ---------------
io_data iob1 | | | iob3 | | |
\ --------------- ---------------
--------------- | --------------- |
iob0 | | | | iob2 | | | |
--------------- | --------------- |
\ | / /
\ | / /
----------------------------------------------
NICs io vector | | | | | | | | | |
----------------------------------------------
RX:
[tcp|udp|icmp|...]ipv[4|6]_data_handler()(iob_concat/append to readahead)
|
|
[tcp|udp|icmp|...]_ipv[4|6]_in()/...
|
|
pkt/ipv[4/6]_input()/...
|
|
NICs io vector receive(iov_base to each iobs)
--------------------------------------------------------------------
2> CONFIG_IOB_BUFSIZE is greater than MTU:
TX:
"(CONFIG_IOB_BUFSIZE) > (MAX_NETDEV_PKTSIZE + CONFIG_NET_GUARDSIZE + CONFIG_NET_LL_GUARDSIZE)"
tcp_poll()/udp_poll()/pkt_poll()/...(l3|l4)
/ \
/ \
devif_poll_[l3|l4]_connections() devif_iob_send() (nocopy:udp/icmp/...)
/ \ (copy:tcp)
/ \
devif_iob_poll("NIC"_txpoll) callback() // "NIC"_txpoll
|
"NIC"_send()
(dev->d_iob->io_data[CONFIG_NET_LL_GUARDSIZE - NET_LL_HDRLEN(dev)])
RX:
[tcp|udp|icmp|...]ipv[4|6]_data_handler()(iob_concat/append to readahead)
|
|
[tcp|udp|icmp|...]_ipv[4|6]_in()/...
|
|
pkt/ipv[4/6]_input()/...
|
|
NICs io vector receive(iov_base to io_data)
--------------------------------------------------------------------
3> Compatible with all old flat buffer NICs
TX:
tcp_poll()/udp_poll()/pkt_poll()/...(l3|l4)
/ \
/ \
devif_poll_[l3|l4]_connections() devif_iob_send() (nocopy:udp/icmp/...)
/ \ (copy:tcp)
/ \
devif_iob_poll(devif_poll_callback()) devif_poll_callback() /* new interface, gather iobs to flat buffer */
/ \
/ \
devif_poll("NIC"_txpoll) "NIC"_send()(dev->d_buf)
RX:
[tcp|udp|icmp|...]ipv[4|6]_data_handler()(iob_concat/append to readahead)
|
|
[tcp|udp|icmp|...]_ipv[4|6]_in()/...
|
|
netdev_input() /* new interface, Scatter/gather flat/iob buffer */
|
|
pkt/ipv[4|6]_input()/...
|
|
NICs io vector receive(Orignal flat buffer)
3. Iperf passthrough on NuttX simulator:
-------------------------------------------------
| Protocol | Server | Client | |
|-----------------------------------------------|
| TCP | 813 | 834 | Mbits/sec |
| TCP(Offload) | 1720 | 1100 | Mbits/sec |
| UDP | 22 | 757 | Mbits/sec |
| UDP(Offload) | 25 | 1250 | Mbits/sec |
-------------------------------------------------
Signed-off-by: chao an <anchao@xiaomi.com>
|
2022-12-03 11:47:04 +08:00 |
|