Page MenuHomeFreeBSD

thunderbolt: Support writing to router config space
Needs ReviewPublic

Authored by obiwac on Mon, Jul 13, 8:47 AM.
Tags
None
Referenced Files
F162699308: D58209.diff
Wed, Jul 15, 10:09 PM
Unknown Object (File)
Mon, Jul 13, 10:37 AM
Subscribers

Details

Reviewers
olce
jhb
ngie
Summary

Not to be confused with PCI config space; we write to a router's config
space by preparing a write command and enqueuing it on our NHI's
transmit ring.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 74763
Build 71646: arc lint + arc unit

Event Timeline

sys/dev/thunderbolt/router.c
643

size_t instead of int seems more appropropriate, but I see that this type is passed through a bunch of callers.

651–659

Would you please replace 4 with a more usable constant / reference to some documentation that describes where this constraint is defined (I realize router_prepare_read needs similar treatment)?

sys/dev/thunderbolt/tbcfg_reg.h
67

Why remove this comment?