1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2014, Joyent, Inc. All rights reserved.
  25 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  26 # Copyright 2013 Saso Kiselkov. All rights reserved.
  27 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  28 # Copyright 2016 Nexenta Systems, Inc.
  29 #
  30 
  31 include $(SRC)/uts/Makefile.uts
  32 
  33 FILEMODE=644
  34 
  35 #
  36 #       Note that the following headers are present in the kernel but
  37 #       neither installed or shipped as part of the product:
  38 #               cpuid_drv.h:            Private interface for cpuid consumers
  39 #               unix_bb_info.h:         Private interface to kcov
  40 #
  41 
  42 i386_HDRS=                      \
  43         agp/agpamd64gart_io.h   \
  44         agp/agpdefs.h           \
  45         agp/agpgart_impl.h      \
  46         agp/agpmaster_io.h      \
  47         agp/agptarget_io.h      \
  48         agpgart.h               \
  49         asy.h                   \
  50         fd_debug.h              \
  51         fdc.h                   \
  52         fdmedia.h               \
  53         mouse.h                 \
  54         ucode.h
  55 
  56 sparc_HDRS=                     \
  57         mouse.h                 \
  58         scsi/targets/ssddef.h   \
  59         $(MDESCHDRS)
  60 
  61 # Generated headers
  62 GENHDRS=                        \
  63         priv_const.h            \
  64         priv_names.h            \
  65         usb/usbdevs.h
  66 
  67 CHKHDRS=                        \
  68         acpi_drv.h              \
  69         acct.h                  \
  70         acctctl.h               \
  71         acl.h                   \
  72         acl_impl.h              \
  73         aggr.h                  \
  74         aggr_impl.h             \
  75         aio.h                   \
  76         aio_impl.h              \
  77         aio_req.h               \
  78         aiocb.h                 \
  79         ascii.h                 \
  80         asynch.h                \
  81         atomic.h                \
  82         attr.h                  \
  83         audio.h                 \
  84         audioio.h               \
  85         autoconf.h              \
  86         auxv.h                  \
  87         auxv_386.h              \
  88         auxv_SPARC.h            \
  89         avl.h                   \
  90         avl_impl.h              \
  91         bitmap.h                \
  92         bitset.h                \
  93         bl.h                    \
  94         blkdev.h                \
  95         bofi.h                  \
  96         bofi_impl.h             \
  97         bpp_io.h                \
  98         bootstat.h              \
  99         brand.h                 \
 100         buf.h                   \
 101         bufmod.h                \
 102         bustypes.h              \
 103         byteorder.h             \
 104         callb.h                 \
 105         callo.h                 \
 106         cap_util.h              \
 107         cpucaps.h               \
 108         cpucaps_impl.h          \
 109         ccompile.h              \
 110         cdio.h                  \
 111         cladm.h                 \
 112         class.h                 \
 113         clconf.h                \
 114         clock_impl.h            \
 115         cmlb.h                  \
 116         cmn_err.h               \
 117         compress.h              \
 118         condvar.h               \
 119         condvar_impl.h          \
 120         conf.h                  \
 121         consdev.h               \
 122         console.h               \
 123         consplat.h              \
 124         vt.h                    \
 125         vtdaemon.h              \
 126         kd.h                    \
 127         contract.h              \
 128         contract_impl.h         \
 129         copyops.h               \
 130         core.h                  \
 131         corectl.h               \
 132         cpc_impl.h              \
 133         cpc_pcbe.h              \
 134         cpr.h                   \
 135         cpupart.h               \
 136         cpuvar.h                \
 137         crc32.h                 \
 138         cred.h                  \
 139         cred_impl.h             \
 140         pidnode.h               \
 141         crtctl.h                \
 142         cryptmod.h              \
 143         csiioctl.h              \
 144         ctf.h                   \
 145         ctfs.h                  \
 146         ctfs_impl.h             \
 147         ctf_api.h               \
 148         ctype.h                 \
 149         cyclic.h                \
 150         cyclic_impl.h           \
 151         dacf.h                  \
 152         dacf_impl.h             \
 153         damap.h                 \
 154         damap_impl.h            \
 155         dc_ki.h                 \
 156         ddi.h                   \
 157         ddifm.h                 \
 158         ddifm_impl.h            \
 159         ddi_hp.h                \
 160         ddi_hp_impl.h           \
 161         ddi_intr.h              \
 162         ddi_intr_impl.h         \
 163         ddi_impldefs.h          \
 164         ddi_implfuncs.h         \
 165         ddi_obsolete.h          \
 166         ddi_periodic.h          \
 167         ddidevmap.h             \
 168         ddidmareq.h             \
 169         ddimapreq.h             \
 170         ddipropdefs.h           \
 171         dditypes.h              \
 172         debug.h                 \
 173         des.h                   \
 174         devctl.h                \
 175         devcache.h              \
 176         devcache_impl.h         \
 177         devfm.h                 \
 178         devid_cache.h           \
 179         devinfo_impl.h          \
 180         devops.h                \
 181         devpolicy.h             \
 182         devpoll.h               \
 183         dirent.h                \
 184         disp.h                  \
 185         dkbad.h                 \
 186         dkio.h                  \
 187         dklabel.h               \
 188         dl.h                    \
 189         dlpi.h                  \
 190         dld.h                   \
 191         dld_impl.h              \
 192         dld_ioc.h               \
 193         dls.h                   \
 194         dls_mgmt.h              \
 195         dls_impl.h              \
 196         dma_i8237A.h            \
 197         dnlc.h                  \
 198         door.h                  \
 199         door_data.h             \
 200         door_impl.h             \
 201         dtrace.h                \
 202         dtrace_impl.h           \
 203         dumpadm.h               \
 204         dumphdr.h               \
 205         ecppsys.h               \
 206         ecppio.h                \
 207         ecppreg.h               \
 208         ecppvar.h               \
 209         edonr.h                 \
 210         efi_partition.h         \
 211         elf.h                   \
 212         elf_386.h               \
 213         elf_SPARC.h             \
 214         elf_notes.h             \
 215         elf_amd64.h             \
 216         elftypes.h              \
 217         emul64.h                \
 218         emul64cmd.h             \
 219         emul64var.h             \
 220         epm.h                   \
 221         epoll.h                 \
 222         errno.h                 \
 223         errorq.h                \
 224         errorq_impl.h           \
 225         esunddi.h               \
 226         ethernet.h              \
 227         euc.h                   \
 228         eucioctl.h              \
 229         eventfd.h               \
 230         exacct.h                \
 231         exacct_catalog.h        \
 232         exacct_impl.h           \
 233         exec.h                  \
 234         exechdr.h               \
 235         extdirent.h             \
 236         fault.h                 \
 237         fasttrap.h              \
 238         fasttrap_impl.h         \
 239         fbio.h                  \
 240         fbuf.h                  \
 241         fcntl.h                 \
 242         fct.h                   \
 243         fct_defines.h           \
 244         fctio.h                 \
 245         fdbuffer.h              \
 246         fdio.h                  \
 247         feature_tests.h         \
 248         fem.h                   \
 249         file.h                  \
 250         filio.h                 \
 251         flock.h                 \
 252         flock_impl.h            \
 253         fork.h                  \
 254         fss.h                   \
 255         fsspriocntl.h           \
 256         fsid.h                  \
 257         fssnap.h                \
 258         fssnap_if.h             \
 259         fstyp.h                 \
 260         ftrace.h                \
 261         fx.h                    \
 262         fxpriocntl.h            \
 263         gfs.h                   \
 264         gld.h                   \
 265         gldpriv.h               \
 266         group.h                 \
 267         hdio.h                  \
 268         hook.h                  \
 269         hook_event.h            \
 270         hook_impl.h             \
 271         hwconf.h                \
 272         ia.h                    \
 273         iapriocntl.h            \
 274         ibpart.h                \
 275         id32.h                  \
 276         idmap.h                 \
 277         ieeefp.h                \
 278         id_space.h              \
 279         instance.h              \
 280         int_const.h             \
 281         int_fmtio.h             \
 282         int_limits.h            \
 283         int_types.h             \
 284         inttypes.h              \
 285         ioccom.h                \
 286         ioctl.h                 \
 287         ipc.h                   \
 288         ipc_impl.h              \
 289         ipc_rctl.h              \
 290         ipd.h                   \
 291         ipmi.h                  \
 292         isa_defs.h              \
 293         iscsi_authclient.h      \
 294         iscsi_authclientglue.h  \
 295         iscsi_protocol.h        \
 296         jioctl.h                \
 297         kbd.h                   \
 298         kbdreg.h                \
 299         kbio.h                  \
 300         kcpc.h                  \
 301         kdi.h                   \
 302         kdi_impl.h              \
 303         kiconv.h                \
 304         kiconv_big5_utf8.h      \
 305         kiconv_cck_common.h     \
 306         kiconv_cp950hkscs_utf8.h        \
 307         kiconv_emea1.h          \
 308         kiconv_emea2.h          \
 309         kiconv_euckr_utf8.h     \
 310         kiconv_euctw_utf8.h     \
 311         kiconv_gb18030_utf8.h   \
 312         kiconv_gb2312_utf8.h    \
 313         kiconv_hkscs_utf8.h     \
 314         kiconv_ja.h             \
 315         kiconv_ja_jis_to_unicode.h      \
 316         kiconv_ja_unicode_to_jis.h      \
 317         kiconv_ko.h             \
 318         kiconv_latin1.h         \
 319         kiconv_sc.h             \
 320         kiconv_tc.h             \
 321         kiconv_uhc_utf8.h       \
 322         kiconv_utf8_big5.h      \
 323         kiconv_utf8_cp950hkscs.h        \
 324         kiconv_utf8_euckr.h     \
 325         kiconv_utf8_euctw.h     \
 326         kiconv_utf8_gb18030.h   \
 327         kiconv_utf8_gb2312.h    \
 328         kiconv_utf8_hkscs.h     \
 329         kiconv_utf8_uhc.h       \
 330         kidmap.h                \
 331         klpd.h                  \
 332         klwp.h                  \
 333         kmdb.h                  \
 334         kmem.h                  \
 335         kmem_impl.h             \
 336         kobj.h                  \
 337         kobj_impl.h             \
 338         ksocket.h               \
 339         kstat.h                 \
 340         kstr.h                  \
 341         ksyms.h                 \
 342         ksynch.h                \
 343         ldterm.h                \
 344         lgrp.h                  \
 345         lgrp_user.h             \
 346         libc_kernel.h           \
 347         link.h                  \
 348         list.h                  \
 349         list_impl.h             \
 350         llc1.h                  \
 351         loadavg.h               \
 352         lock.h                  \
 353         lockfs.h                \
 354         lockstat.h              \
 355         lofi.h                  \
 356         log.h                   \
 357         logindmux.h             \
 358         logindmux_impl.h        \
 359         lwp.h                   \
 360         lwp_timer_impl.h        \
 361         lwp_upimutex_impl.h     \
 362         lpif.h                  \
 363         mac.h                   \
 364         mac_client.h            \
 365         mac_client_impl.h       \
 366         mac_ether.h             \
 367         mac_flow.h              \
 368         mac_flow_impl.h         \
 369         mac_impl.h              \
 370         mac_provider.h          \
 371         mac_soft_ring.h         \
 372         mac_stat.h              \
 373         machelf.h               \
 374         map.h                   \
 375         md4.h                   \
 376         md5.h                   \
 377         md5_consts.h            \
 378         mdi_impldefs.h          \
 379         mem.h                   \
 380         mem_config.h            \
 381         memlist.h               \
 382         mkdev.h                 \
 383         mhd.h                   \
 384         mii.h                   \
 385         miiregs.h               \
 386         mixer.h                 \
 387         mman.h                  \
 388         mmapobj.h               \
 389         mntent.h                \
 390         mntio.h                 \
 391         mnttab.h                \
 392         modctl.h                \
 393         mode.h                  \
 394         model.h                 \
 395         modhash.h               \
 396         modhash_impl.h          \
 397         mount.h                 \
 398         mouse.h                 \
 399         msacct.h                \
 400         msg.h                   \
 401         msg_impl.h              \
 402         msio.h                  \
 403         msreg.h                 \
 404         mtio.h                  \
 405         multidata.h             \
 406         multidata_impl.h        \
 407         mutex.h                 \
 408         nbmlock.h               \
 409         ndifm.h                 \
 410         ndi_impldefs.h          \
 411         net80211.h              \
 412         net80211_crypto.h       \
 413         net80211_ht.h           \
 414         net80211_proto.h        \
 415         netconfig.h             \
 416         neti.h                  \
 417         netstack.h              \
 418         nexusdefs.h             \
 419         note.h                  \
 420         null.h                  \
 421         nvpair.h                \
 422         nvpair_impl.h           \
 423         objfs.h                 \
 424         objfs_impl.h            \
 425         ontrap.h                \
 426         open.h                  \
 427         openpromio.h            \
 428         panic.h                 \
 429         param.h                 \
 430         pathconf.h              \
 431         pathname.h              \
 432         pattr.h                 \
 433         queue.h                 \
 434         serializer.h            \
 435         pbio.h                  \
 436         pccard.h                \
 437         pci.h                   \
 438         pcie.h                  \
 439         pci_impl.h              \
 440         pci_tools.h             \
 441         pcmcia.h                \
 442         pctypes.h               \
 443         pfmod.h                 \
 444         pg.h                    \
 445         pghw.h                  \
 446         physmem.h               \
 447         pkp_hash.h              \
 448         pm.h                    \
 449         policy.h                \
 450         poll.h                  \
 451         poll_impl.h             \
 452         pool.h                  \
 453         pool_impl.h             \
 454         pool_pset.h             \
 455         port.h                  \
 456         port_impl.h             \
 457         port_kernel.h           \
 458         portif.h                \
 459         ppmio.h                 \
 460         pppt_ic_if.h            \
 461         pppt_ioctl.h            \
 462         priocntl.h              \
 463         priv.h                  \
 464         priv_impl.h             \
 465         prnio.h                 \
 466         proc.h                  \
 467         processor.h             \
 468         procfs.h                \
 469         procset.h               \
 470         project.h               \
 471         protosw.h               \
 472         prsystm.h               \
 473         pset.h                  \
 474         pshot.h                 \
 475         ptem.h                  \
 476         ptms.h                  \
 477         ptyvar.h                \
 478         raidioctl.h             \
 479         ramdisk.h               \
 480         random.h                \
 481         rctl.h                  \
 482         rctl_impl.h             \
 483         rds.h                   \
 484         reboot.h                \
 485         refstr.h                \
 486         refstr_impl.h           \
 487         resource.h              \
 488         rlioctl.h               \
 489         rt.h                    \
 490         rtpriocntl.h            \
 491         rwlock.h                \
 492         rwlock_impl.h           \
 493         rwstlock.h              \
 494         sad.h                   \
 495         schedctl.h              \
 496         sdt.h                   \
 497         select.h                \
 498         sem.h                   \
 499         sem_impl.h              \
 500         sema_impl.h             \
 501         semaphore.h             \
 502         sendfile.h              \
 503         ser_sync.h              \
 504         session.h               \
 505         sha1.h                  \
 506         sha1_consts.h           \
 507         sha2.h                  \
 508         sha2_consts.h           \
 509         share.h                 \
 510         shm.h                   \
 511         shm_impl.h              \
 512         sid.h                   \
 513         siginfo.h               \
 514         signal.h                \
 515         signalfd.h              \
 516         skein.h                 \
 517         sleepq.h                \
 518         smbios.h                \
 519         smbios_impl.h           \
 520         sobject.h               \
 521         socket.h                \
 522         socket_impl.h           \
 523         socket_proto.h          \
 524         socketvar.h             \
 525         sockfilter.h            \
 526         sockio.h                \
 527         soundcard.h             \
 528         squeue.h                \
 529         squeue_impl.h           \
 530         srn.h                   \
 531         sservice.h              \
 532         stat.h                  \
 533         statfs.h                \
 534         statvfs.h               \
 535         stdbool.h               \
 536         stdint.h                \
 537         stermio.h               \
 538         stmf.h                  \
 539         stmf_defines.h          \
 540         stmf_ioctl.h            \
 541         stmf_sbd_ioctl.h        \
 542         stream.h                \
 543         strft.h                 \
 544         strlog.h                \
 545         strmdep.h               \
 546         stropts.h               \
 547         strredir.h              \
 548         strstat.h               \
 549         strsubr.h               \
 550         strsun.h                \
 551         strtty.h                \
 552         sunddi.h                \
 553         sunldi.h                \
 554         sunldi_impl.h           \
 555         sunmdi.h                \
 556         sunndi.h                \
 557         sunos_dhcp_class.h      \
 558         sunpm.h                 \
 559         suntpi.h                \
 560         suntty.h                \
 561         swap.h                  \
 562         synch.h                 \
 563         sysdc.h                 \
 564         sysdc_impl.h            \
 565         syscall.h               \
 566         sysconf.h               \
 567         sysconfig.h             \
 568         sysevent.h              \
 569         sysevent_impl.h         \
 570         sysinfo.h               \
 571         syslog.h                \
 572         sysmacros.h             \
 573         sysmsg_impl.h           \
 574         systeminfo.h            \
 575         systm.h                 \
 576         task.h                  \
 577         taskq.h                 \
 578         taskq_impl.h            \
 579         t_kuser.h               \
 580         t_lock.h                \
 581         telioctl.h              \
 582         termio.h                \
 583         termios.h               \
 584         termiox.h               \
 585         thread.h                \
 586         ticlts.h                \
 587         ticots.h                \
 588         ticotsord.h             \
 589         tihdr.h                 \
 590         time.h                  \
 591         time_impl.h             \
 592         time_std_impl.h         \
 593         timeb.h                 \
 594         timer.h                 \
 595         timerfd.h               \
 596         times.h                 \
 597         timex.h                 \
 598         timod.h                 \
 599         tirdwr.h                \
 600         tiuser.h                \
 601         tl.h                    \
 602         tnf.h                   \
 603         tnf_com.h               \
 604         tnf_probe.h             \
 605         tnf_writer.h            \
 606         todio.h                 \
 607         tpicommon.h             \
 608         ts.h                    \
 609         tspriocntl.h            \
 610         ttcompat.h              \
 611         ttold.h                 \
 612         tty.h                   \
 613         ttychars.h              \
 614         ttydev.h                \
 615         tuneable.h              \
 616         turnstile.h             \
 617         types.h                 \
 618         types32.h               \
 619         tzfile.h                \
 620         u8_textprep.h           \
 621         u8_textprep_data.h      \
 622         uadmin.h                \
 623         ucred.h                 \
 624         uio.h                   \
 625         ulimit.h                \
 626         un.h                    \
 627         unistd.h                \
 628         user.h                  \
 629         ustat.h                 \
 630         utime.h                 \
 631         utsname.h               \
 632         utssys.h                \
 633         uuid.h                  \
 634         va_impl.h               \
 635         va_list.h               \
 636         var.h                   \
 637         varargs.h               \
 638         vfs.h                   \
 639         vfs_opreg.h             \
 640         vfstab.h                \
 641         vgareg.h                \
 642         videodev2.h             \
 643         visual_io.h             \
 644         vlan.h                  \
 645         vm.h                    \
 646         vm_usage.h              \
 647         vmem.h                  \
 648         vmem_impl.h             \
 649         vmsystm.h               \
 650         vnic.h                  \
 651         vnic_impl.h             \
 652         vnode.h                 \
 653         vscan.h                 \
 654         vtoc.h                  \
 655         vtrace.h                \
 656         vuid_event.h            \
 657         vuid_wheel.h            \
 658         vuid_queue.h            \
 659         vuid_state.h            \
 660         vuid_store.h            \
 661         wait.h                  \
 662         waitq.h                 \
 663         wanboot_impl.h          \
 664         watchpoint.h            \
 665         winlockio.h             \
 666         zcons.h                 \
 667         zone.h                  \
 668         xti_inet.h              \
 669         xti_osi.h               \
 670         xti_xtiopt.h            \
 671         zmod.h
 672 
 673 HDRS=                           \
 674         $(GENHDRS)              \
 675         $(CHKHDRS)
 676 
 677 AUDIOHDRS=                      \
 678         ac97.h                  \
 679         audio_common.h          \
 680         audio_driver.h          \
 681         audio_oss.h             \
 682         g711.h
 683 
 684 AVHDRS=                         \
 685         iec61883.h
 686 
 687 BSCHDRS=                        \
 688         bscbus.h                \
 689         bscv_impl.h             \
 690         lom_ebuscodes.h         \
 691         lom_io.h                \
 692         lom_priv.h              \
 693         lombus.h
 694 
 695 MDESCHDRS=                      \
 696         mdesc.h                 \
 697         mdesc_impl.h            
 698 
 699 CPUDRVHDRS=                     \
 700         cpudrv.h
 701 
 702 CRYPTOHDRS=                     \
 703         elfsign.h               \
 704         ioctl.h                 \
 705         ioctladmin.h            \
 706         common.h                \
 707         impl.h                  \
 708         spi.h                   \
 709         api.h                   \
 710         ops_impl.h              \
 711         sched_impl.h
 712 
 713 DCAMHDRS=                       \
 714         dcam1394_io.h
 715 
 716 IBHDRS=                 \
 717         ib_types.h      \
 718         ib_pkt_hdrs.h
 719 
 720 IBTLHDRS=               \
 721         ibtl_types.h    \
 722         ibtl_status.h   \
 723         ibti.h          \
 724         ibti_cm.h       \
 725         ibci.h          \
 726         ibti_common.h   \
 727         ibvti.h         \
 728         ibtl_ci_types.h
 729 
 730 IBTLIMPLHDRS=           \
 731         ibtl_util.h
 732 
 733 IBNEXHDRS=              \
 734         ibnex_devctl.h
 735 
 736 IBMFHDRS=               \
 737         ibmf.h          \
 738         ibmf_msg.h      \
 739         ibmf_saa.h      \
 740         ibmf_utils.h
 741 
 742 IBMGTHDRS=              \
 743         ib_dm_attr.h    \
 744         ib_mad.h        \
 745         sm_attr.h       \
 746         sa_recs.h
 747 
 748 IBDHDRS=                \
 749         ibd.h
 750 
 751 OFHDRS=                 \
 752         ofa_solaris.h   \
 753         ofed_kernel.h
 754 
 755 RDMAHDRS=               \
 756         ib_addr.h       \
 757         ib_user_mad.h   \
 758         ib_user_sa.h    \
 759         ib_user_verbs.h \
 760         ib_verbs.h      \
 761         rdma_cm.h       \
 762         rdma_user_cm.h
 763 
 764 SOL_UVERBSHDRS=         \
 765         sol_uverbs.h    \
 766         sol_uverbs2ucma.h       \
 767         sol_uverbs_comp.h       \
 768         sol_uverbs_hca.h        \
 769         sol_uverbs_qp.h         \
 770         sol_uverbs_event.h
 771 
 772 SOL_UMADHDRS=           \
 773         sol_umad.h
 774 
 775 SOL_UCMAHDRS=           \
 776         sol_ucma.h      \
 777         sol_rdma_user_cm.h
 778 
 779 SOL_OFSHDRS=            \
 780         sol_cma.h       \
 781         sol_ib_cma.h    \
 782         sol_ofs_common.h        \
 783         sol_kverb_impl.h
 784 
 785 TAVORHDRS=              \
 786         tavor_ioctl.h
 787 
 788 HERMONHDRS=             \
 789         hermon_ioctl.h
 790 
 791 MLNXHDRS=               \
 792         mlnx_umap.h
 793 
 794 IDMHDRS=                \
 795         idm.h           \
 796         idm_impl.h      \
 797         idm_so.h        \
 798         idm_text.h      \
 799         idm_transport.h \
 800         idm_conn_sm.h
 801 
 802 ISCSITHDRS=             \
 803         radius_packet.h         \
 804         radius_protocol.h       \
 805         chap.h                  \
 806         isns_protocol.h         \
 807         iscsi_if.h              \
 808         iscsit_common.h
 809 
 810 ISOHDRS=                        \
 811         signal_iso.h
 812 
 813 DERIVED_LVMHDRS=        \
 814         md_mdiox.h              \
 815         md_basic.h              \
 816         mdmed.h                 \
 817         md_mhdx.h               \
 818         mdmn_commd.h
 819 
 820 LVMHDRS=                        \
 821         md_convert.h            \
 822         md_crc.h                \
 823         md_hotspares.h          \
 824         md_mddb.h               \
 825         md_mirror.h             \
 826         md_mirror_shared.h      \
 827         md_names.h              \
 828         md_notify.h             \
 829         md_raid.h               \
 830         md_rename.h             \
 831         md_sp.h                 \
 832         md_stripe.h             \
 833         md_trans.h              \
 834         mdio.h                  \
 835         mdvar.h                 
 836 
 837 ALL_LVMHDRS=                    \
 838         $(LVMHDRS)              \
 839         $(DERIVED_LVMHDRS)
 840 
 841 FMHDRS=                         \
 842         protocol.h              \
 843         util.h
 844 
 845 FMFSHDRS=                       \
 846         zfs.h
 847 
 848 FMIOHDRS=                       \
 849         ddi.h                   \
 850         disk.h                  \
 851         pci.h                   \
 852         scsi.h                  \
 853         sun4upci.h              \
 854         opl_mc_fm.h
 855 
 856 FSHDRS=                         \
 857         autofs.h                \
 858         decomp.h                \
 859         dv_node.h               \
 860         sdev_impl.h             \
 861         fifonode.h              \
 862         hsfs_isospec.h          \
 863         hsfs_node.h             \
 864         hsfs_rrip.h             \
 865         hsfs_spec.h             \
 866         hsfs_susp.h             \
 867         lofs_info.h             \
 868         lofs_node.h             \
 869         mntdata.h               \
 870         namenode.h              \
 871         pc_dir.h                \
 872         pc_fs.h                 \
 873         pc_label.h              \
 874         pc_node.h               \
 875         pxfs_ki.h               \
 876         snode.h                 \
 877         swapnode.h              \
 878         tmp.h                   \
 879         tmpnode.h               \
 880         udf_inode.h             \
 881         udf_volume.h            \
 882         ufs_acl.h               \
 883         ufs_bio.h               \
 884         ufs_filio.h             \
 885         ufs_fs.h                \
 886         ufs_fsdir.h             \
 887         ufs_inode.h             \
 888         ufs_lockfs.h            \
 889         ufs_log.h               \
 890         ufs_mount.h             \
 891         ufs_panic.h             \
 892         ufs_prot.h              \
 893         ufs_quota.h             \
 894         ufs_snap.h              \
 895         ufs_trans.h             \
 896         zfs.h                   \
 897         zut.h
 898 
 899 SCSIHDRS=               \
 900         scsi.h          \
 901         scsi_address.h  \
 902         scsi_ctl.h      \
 903         scsi_fm.h       \
 904         scsi_names.h    \
 905         scsi_params.h   \
 906         scsi_pkt.h      \
 907         scsi_resource.h \
 908         scsi_types.h    \
 909         scsi_watch.h
 910 
 911 SCSICONFHDRS=           \
 912         autoconf.h      \
 913         device.h
 914 
 915 SCSIGENHDRS=            \
 916         commands.h      \
 917         dad_mode.h      \
 918         inquiry.h       \
 919         message.h       \
 920         mode.h          \
 921         persist.h       \
 922         sense.h         \
 923         sff_frames.h    \
 924         smp_frames.h    \
 925         status.h
 926 
 927 SCSIIMPLHDRS=           \
 928         commands.h      \
 929         inquiry.h       \
 930         mode.h          \
 931         scsi_reset_notify.h \
 932         scsi_sas.h      \
 933         sense.h         \
 934         services.h      \
 935         smp_transport.h \
 936         spc3_types.h    \
 937         status.h        \
 938         transport.h     \
 939         types.h         \
 940         uscsi.h         \
 941         usmp.h
 942 
 943 SCSITARGETSHDRS=        \
 944         ses.h           \
 945         sesio.h         \
 946         sgendef.h       \
 947         stdef.h         \
 948         sddef.h         \
 949         smp.h
 950 
 951 SCSIADHDRS=
 952 
 953 SCSICADHDRS=
 954 
 955 SCSIISCSIHDRS=          \
 956         iscsi_door.h    \
 957         iscsi_if.h
 958 
 959 SCSIVHCIHDRS=           \
 960         scsi_vhci.h     \
 961         mpapi_impl.h    \
 962         mpapi_scsi_vhci.h
 963 
 964 SDCARDHDRS=             \
 965         sda.h           \
 966         sda_impl.h      \
 967         sda_ioctl.h
 968 
 969 FC4HDRS=                        \
 970         fc_transport.h  \
 971         linkapp.h       \
 972         fc.h            \
 973         fcp.h           \
 974         fcal_transport.h \
 975         fcal.h          \
 976         fcal_linkapp.h  \
 977         fcio.h
 978 
 979 FCHDRS=                 \
 980         fc.h            \
 981         fcio.h          \
 982         fc_types.h      \
 983         fc_appif.h
 984 
 985 FCIMPLHDRS=             \
 986         fc_error.h      \
 987         fcph.h
 988 
 989 FCULPHDRS=              \
 990         fcp_util.h      \
 991         fcsm.h
 992 
 993 SATAGENHDRS=            \
 994         sata_hba.h      \
 995         sata_defs.h     \
 996         sata_cfgadm.h
 997 
 998 SYSEVENTHDRS=           \
 999         ap_driver.h     \
1000         dev.h           \
1001         domain.h        \
1002         dr.h            \
1003         env.h           \
1004         eventdefs.h     \
1005         ipmp.h          \
1006         pwrctl.h        \
1007         svm.h           \
1008         vrrp.h
1009 
1010 CONTRACTHDRS=           \
1011         process.h       \
1012         process_impl.h  \
1013         device.h        \
1014         device_impl.h
1015 
1016 USBHDRS=        \
1017         usba.h  \
1018         usbai.h
1019 
1020 USBAUDHDRS=           \
1021         usb_audio.h
1022 
1023 USBHUBDHDRS=            \
1024         hub.h           \
1025         hubd_impl.h
1026 
1027 USBHIDHDRS=             \
1028         hid.h
1029 
1030 USBMSHDRS=              \
1031         usb_bulkonly.h  \
1032         usb_cbi.h
1033 
1034 USBPRNHDRS=           \
1035         usb_printer.h
1036 
1037 USBCDCHDRS=             \
1038         usb_cdc.h
1039 
1040 USBVIDHDRS=           \
1041         usbvc.h
1042 
1043 USBWCMHDRS=             \
1044         usbwcm.h
1045 
1046 UGENHDRS=           \
1047         usb_ugen.h
1048 
1049 HOTPLUGHDRS=    \
1050         hpcsvc.h        \
1051         hpctrl.h
1052 
1053 HOTPLUGPCIHDRS= \
1054         pcicfg.h        \
1055         pcihp.h
1056 
1057 RSMHDRS= \
1058         rsm.h   \
1059         rsm_common.h    \
1060         rsmapi_common.h \
1061         rsmpi.h \
1062         rsmpi_driver.h  \
1063         rsmka_path_int.h
1064 
1065 TSOLHDRS=               \
1066         label.h         \
1067         label_macro.h   \
1068         priv.h          \
1069         tndb.h          \
1070         tsyscall.h
1071 
1072 I1394HDRS=              \
1073         cmd1394.h       \
1074         id1394.h        \
1075         ieee1212.h      \
1076         ieee1394.h      \
1077         ixl1394.h       \
1078         s1394_impl.h    \
1079         t1394.h
1080 
1081 # "cmdk" headers used on sparc
1082 SDKTPHDRS=              \
1083         dadkio.h        \
1084         fdisk.h
1085 
1086 # "cmdk" headers used on i386
1087 DKTPHDRS=               \
1088         altsctr.h       \
1089         bbh.h           \
1090         cm.h            \
1091         cmdev.h         \
1092         cmdk.h          \
1093         cmpkt.h         \
1094         controller.h    \
1095         dadev.h         \
1096         dadk.h          \
1097         dadkio.h        \
1098         fctypes.h       \
1099         fdisk.h         \
1100         flowctrl.h      \
1101         gda.h           \
1102         quetypes.h      \
1103         queue.h         \
1104         tgcom.h         \
1105         tgdk.h
1106 
1107 # "pc" header files used on i386
1108 PCHDRS=                 \
1109         avintr.h        \
1110         dma_engine.h    \
1111         i8272A.h        \
1112         pcic_reg.h      \
1113         pcic_var.h      \
1114         pic.h           \
1115         pit.h           \
1116         rtc.h
1117 
1118 NXGEHDRS=                       \
1119         nxge.h                  \
1120         nxge_common.h           \
1121         nxge_common_impl.h      \
1122         nxge_defs.h             \
1123         nxge_hw.h               \
1124         nxge_impl.h             \
1125         nxge_ipp.h              \
1126         nxge_ipp_hw.h           \
1127         nxge_mac.h              \
1128         nxge_mac_hw.h           \
1129         nxge_fflp.h             \
1130         nxge_fflp_hw.h          \
1131         nxge_mii.h              \
1132         nxge_rxdma.h            \
1133         nxge_rxdma_hw.h         \
1134         nxge_txc.h              \
1135         nxge_txc_hw.h           \
1136         nxge_txdma.h            \
1137         nxge_txdma_hw.h         \
1138         nxge_virtual.h          \
1139         nxge_espc.h
1140 
1141 include Makefile.syshdrs
1142 
1143 dcam/%.check:   dcam/%.h
1144         $(DOT_H_CHECK)
1145 
1146 CHECKHDRS=                                              \
1147         $($(MACH)_HDRS:%.h=%.check)                     \
1148         $(AUDIOHDRS:%.h=audio/%.check)                  \
1149         $(AVHDRS:%.h=av/%.check)                        \
1150         $(BSCHDRS:%.h=%.check)                          \
1151         $(CHKHDRS:%.h=%.check)                          \
1152         $(CPUDRVHDRS:%.h=%.check)                       \
1153         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1154         $(DCAMHDRS:%.h=dcam/%.check)                    \
1155         $(FC4HDRS:%.h=fc4/%.check)                      \
1156         $(FCHDRS:%.h=fibre-channel/%.check)             \
1157         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1158         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1159         $(IBHDRS:%.h=ib/%.check)                        \
1160         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1161         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1162         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1163         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1164         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1165         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1166         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1167         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1168         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1169         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1170         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1171         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1172         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1173         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1174         $(IDMHDRS:%.h=idm/%.check)                      \
1175         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1176         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1177         $(ISOHDRS:%.h=iso/%.check)                      \
1178         $(FMHDRS:%.h=fm/%.check)                        \
1179         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1180         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1181         $(FSHDRS:%.h=fs/%.check)                        \
1182         $(LVMHDRS:%.h=lvm/%.check)                      \
1183         $(SCSIHDRS:%.h=scsi/%.check)                    \
1184         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1185         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1186         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1187         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1188         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1189         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1190         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1191         $(SATAGENHDRS:%.h=sata/%.check)                 \
1192         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1193         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1194         $(CONTRACTHDRS:%.h=contract/%.check)            \
1195         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1196         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1197         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1198         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1199         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1200         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1201         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1202         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1203         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1204         $(USBHDRS:%.h=usb/%.check)                      \
1205         $(I1394HDRS:%.h=1394/%.check)                   \
1206         $(RSMHDRS:%.h=rsm/%.check)                      \
1207         $(TSOLHDRS:%.h=tsol/%.check)                    \
1208         $(NXGEHDRS:%.h=nxge/%.check)
1209 
1210 
1211 .KEEP_STATE:
1212 
1213 .PARALLEL:                      \
1214         $(CHECKHDRS)            \
1215         $(ROOTHDRS)             \
1216         $(ROOTAUDHDRS)          \
1217         $(ROOTAVHDRS)           \
1218         $(ROOTCRYPTOHDRS)       \
1219         $(ROOTDCAMHDRS)         \
1220         $(ROOTISOHDRS)          \
1221         $(ROOTIDMHDRS)          \
1222         $(ROOTISCSIHDRS)        \
1223         $(ROOTISCSITHDRS)       \
1224         $(ROOTFC4HDRS)          \
1225         $(ROOTFCHDRS)           \
1226         $(ROOTFCIMPLHDRS)       \
1227         $(ROOTFCULPHDRS)        \
1228         $(ROOTFMHDRS)           \
1229         $(ROOTFMIOHDRS)         \
1230         $(ROOTFMFSHDRS)         \
1231         $(ROOTFSHDRS)           \
1232         $(ROOTIBDHDRS)          \
1233         $(ROOTIBHDRS)           \
1234         $(ROOTIBTLHDRS)         \
1235         $(ROOTIBTLIMPLHDRS)     \
1236         $(ROOTIBNEXHDRS)        \
1237         $(ROOTIBMGTHDRS)        \
1238         $(ROOTIBMFHDRS)         \
1239         $(ROOTOFHDRS)           \
1240         $(ROOTRDMAHDRS)         \
1241         $(ROOTSOL_OFSHDRS)      \
1242         $(ROOTSOL_UMADHDRS)     \
1243         $(ROOTSOL_UVERBSHDRS)   \
1244         $(ROOTSOL_UCMAHDRS)     \
1245         $(ROOTTAVORHDRS)        \
1246         $(ROOTHERMONHDRS)       \
1247         $(ROOTMLNXHDRS)         \
1248         $(ROOTLVMHDRS)          \
1249         $(ROOTSCSIHDRS)         \
1250         $(ROOTSCSIADHDRS)       \
1251         $(ROOTSCSICONFHDRS)     \
1252         $(ROOTSCSIISCSIHDRS)    \
1253         $(ROOTSCSIGENHDRS)      \
1254         $(ROOTSCSIIMPLHDRS)     \
1255         $(ROOTSCSIVHCIHDRS)     \
1256         $(ROOTSDCARDHDRS)       \
1257         $(ROOTSYSEVENTHDRS)     \
1258         $(ROOTCONTRACTHDRS)     \
1259         $(ROOTUSBHDRS)          \
1260         $(ROOTUWBHDRS)          \
1261         $(ROOTUWBAHDRS)         \
1262         $(ROOTUSBAUDHDRS)       \
1263         $(ROOTUSBHUBDHDRS)      \
1264         $(ROOTUSBHIDHDRS)       \
1265         $(ROOTUSBHRCHDRS)       \
1266         $(ROOTUSBMSHDRS)        \
1267         $(ROOTUSBPRNHDRS)       \
1268         $(ROOTUSBCDCHDRS)       \
1269         $(ROOTUSBVIDHDRS)       \
1270         $(ROOTUSBWCMHDRS)       \
1271         $(ROOTUGENHDRS)         \
1272         $(ROOT1394HDRS)         \
1273         $(ROOTHOTPLUGHDRS)      \
1274         $(ROOTHOTPLUGPCIHDRS)   \
1275         $(ROOTRSMHDRS)          \
1276         $(ROOTTSOLHDRS)         \
1277         $($(MACH)_ROOTHDRS)
1278 
1279 
1280 install_h:                      \
1281         $(ROOTDIRS)             \
1282         LVMDERIVED_H            \
1283         .WAIT                   \
1284         $(ROOTHDRS)             \
1285         $(ROOTAUDHDRS)          \
1286         $(ROOTAVHDRS)           \
1287         $(ROOTCRYPTOHDRS)       \
1288         $(ROOTDCAMHDRS)         \
1289         $(ROOTISOHDRS)          \
1290         $(ROOTIDMHDRS)          \
1291         $(ROOTISCSIHDRS)        \
1292         $(ROOTISCSITHDRS)       \
1293         $(ROOTFC4HDRS)          \
1294         $(ROOTFCHDRS)           \
1295         $(ROOTFCIMPLHDRS)       \
1296         $(ROOTFCULPHDRS)        \
1297         $(ROOTFMHDRS)           \
1298         $(ROOTFMFSHDRS)         \
1299         $(ROOTFMIOHDRS)         \
1300         $(ROOTFSHDRS)           \
1301         $(ROOTIBDHDRS)          \
1302         $(ROOTIBHDRS)           \
1303         $(ROOTIBTLHDRS)         \
1304         $(ROOTIBTLIMPLHDRS)     \
1305         $(ROOTIBNEXHDRS)        \
1306         $(ROOTIBMGTHDRS)        \
1307         $(ROOTIBMFHDRS)         \
1308         $(ROOTOFHDRS)           \
1309         $(ROOTRDMAHDRS)         \
1310         $(ROOTSOL_OFSHDRS)      \
1311         $(ROOTSOL_UMADHDRS)     \
1312         $(ROOTSOL_UVERBSHDRS)   \
1313         $(ROOTSOL_UCMAHDRS)     \
1314         $(ROOTTAVORHDRS)        \
1315         $(ROOTHERMONHDRS)       \
1316         $(ROOTMLNXHDRS)         \
1317         $(ROOTLVMHDRS)          \
1318         $(ROOTSCSIHDRS)         \
1319         $(ROOTSCSIADHDRS)       \
1320         $(ROOTSCSIISCSIHDRS)    \
1321         $(ROOTSCSICONFHDRS)     \
1322         $(ROOTSCSIGENHDRS)      \
1323         $(ROOTSCSIIMPLHDRS)     \
1324         $(ROOTSCSIVHCIHDRS)     \
1325         $(ROOTSDCARDHDRS)       \
1326         $(ROOTSYSEVENTHDRS)     \
1327         $(ROOTCONTRACTHDRS)     \
1328         $(ROOTUWBHDRS)          \
1329         $(ROOTUWBAHDRS)         \
1330         $(ROOTUSBHDRS)          \
1331         $(ROOTUSBAUDHDRS)       \
1332         $(ROOTUSBHUBDHDRS)      \
1333         $(ROOTUSBHIDHDRS)       \
1334         $(ROOTUSBHRCHDRS)       \
1335         $(ROOTUSBMSHDRS)        \
1336         $(ROOTUSBPRNHDRS)       \
1337         $(ROOTUSBCDCHDRS)       \
1338         $(ROOTUSBVIDHDRS)       \
1339         $(ROOTUSBWCMHDRS)       \
1340         $(ROOTUGENHDRS)         \
1341         $(ROOT1394HDRS)         \
1342         $(ROOTHOTPLUGHDRS)      \
1343         $(ROOTHOTPLUGPCIHDRS)   \
1344         $(ROOTRSMHDRS)          \
1345         $(ROOTTSOLHDRS)         \
1346         $($(MACH)_ROOTHDRS)
1347 
1348 all_h: $(GENHDRS)
1349 
1350 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1351         $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1352 
1353 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1354         $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1355 
1356 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1357         $(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1358 
1359 LVMDERIVED_H:
1360         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) all_h
1361 
1362 clean:
1363         $(RM) $(GENHDRS)
1364 
1365 clobber: clean
1366         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) clobber
1367 
1368 check:  $(CHECKHDRS)
1369 
1370 FRC: