File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ int cxl_dpa_alloc(struct cxl_endpoint_decoder *cxled, u64 size);
80
80
int cxl_dpa_free (struct cxl_endpoint_decoder * cxled );
81
81
resource_size_t cxl_dpa_size (struct cxl_endpoint_decoder * cxled );
82
82
resource_size_t cxl_dpa_resource_start (struct cxl_endpoint_decoder * cxled );
83
+ bool cxl_resource_contains_addr (const struct resource * res , const resource_size_t addr );
83
84
84
85
enum cxl_rcrb {
85
86
CXL_RCRB_DOWNSTREAM ,
Original file line number Diff line number Diff line change @@ -547,6 +547,13 @@ resource_size_t cxl_dpa_resource_start(struct cxl_endpoint_decoder *cxled)
547
547
return base ;
548
548
}
549
549
550
+ bool cxl_resource_contains_addr (const struct resource * res , const resource_size_t addr )
551
+ {
552
+ struct resource _addr = DEFINE_RES_MEM (addr , 1 );
553
+
554
+ return resource_contains (res , & _addr );
555
+ }
556
+
550
557
int cxl_dpa_free (struct cxl_endpoint_decoder * cxled )
551
558
{
552
559
struct cxl_port * port = cxled_to_port (cxled );
You can’t perform that action at this time.
0 commit comments